Netbeans checkbox handling ..stuck

hi !
I am using netbeans to design a gui and stuck at a place
I want to execute a command say "foobar -t - a filename -o filename "
i have created a string buffer that stores "foobar ". I want that on checking a checkbox positive the options like "-t" gets appended to the original foobar . how do i make it .
how do i use the method to do this : -
private void abcItemStateChanged(java.awt.event.ItemEvent evt) { (this is created once i add event listener to a check box )
here i handle the checkbox (SELECTED or DESELECTED)
abc is the name of checkbox . please help , even pointing to some doc will also do .
.

I doubt that you will have to worry about any checkbox state changed method here as you're not going to be calling your command string when the checkbox is checked or unchecked, correct? The most important question in my mind is: what will initiate the construction and calling of your command string? My guess is that you have a standard JButton (not a JCheckBox) that when clicked will tell the program to gather the information in the JTextFields and JCheckBoxes (oh, btw, I'm assuming that you're using Swing here, not AWT, correct?), create your command String and somehow use the string to issue your command. It is in this method where you need to get the state of the checkbox and use that state in constructing your String (probably by using a StringBuilder). You get the JCheckBox state simply by calling the isSelected() method on the check box.
If this makes no sense, then sorry, and perhaps I didn't fully understand the question. If so, please provide more information.
Good luck.

Similar Messages

  • Urgent checkboxes handling in alv grid

    helo all .i need to handle checkboxes in alv grid.
    i did like
    case u_comm.
    when 'save'.
    perform save.
    endcase.
    in the form.
    form save.
    loop at it_mara into it_mara1 where chk = 'X'
    and moving the contents to it_mara1.
    but after doing it is not looping when i have seen in debug .
    plz help me
    i need to have those selected values and move a head.

    Hi rakhee,
    First add a single charecter field into the internal table you want to display in the ALV.Then set the field cataloge and set the value for Checkbox as 'X'.it wil display the field as a check box.when you check the check box it will update the internal table also.
    please check the below code.
    TYPE-POOLS : slis.
    TYPES : BEGIN OF st_mara.
    TYPES : matnr TYPE mara-matnr.
    TYPES : a,
    END OF st_mara.
    DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
           wa_fieldcat LIKE LINE OF it_fieldcat.
    DATA : it_mara TYPE TABLE OF st_mara.
    SELECT * FROM mara
             INTO CORRESPONDING FIELDS OF TABLE it_mara UP TO 1 ROWS.
    wa_fieldcat-col_pos = 1.
    wa_fieldcat-fieldname = 'A'.
    wa_fieldcat-checkbox = 'X'.
    wa_fieldcat-edit = 'X'.
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = 2.
    wa_fieldcat-fieldname = 'MATNR'.
    APPEND wa_fieldcat TO it_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        it_fieldcat = it_fieldcat
      TABLES
        t_outtab    = it_mara.
    BREAK-POINT.
    if you are using controls just call the method
      CALL METHOD grid1->check_changed_data.
    grid1 is the instance of the ALV grid.
    when the method is called you will get the internal table with the field marked as 'X'.
    Regards
    Sandeep

  • Type on a Path handle stuck

    I created a line and used the Type on a Path tool to add text to the line. While I was adding the text I realized I needed the line to be longer. I pulled the handle to make the line longer, but it leaves the text path the shorter length. I grabbed the text path handle to make it the same length as the line, but it won't expand. I can make the path shorter, but not longer. It's acting as if it doesn't realize the line got longer and so it stops at the original line length's end point. Is there a setting that is causing this issue or just a bug? Usually when this happens I end up making a new path and pasting the text onto it because I can't figure out what's going on.
    Mac OSX 10.5.4
    InDesign CS3 5.0.4

    I don't seem to be able to reproduce the problem. It's often easier, I find, to manipulat type on a path using the direct select tool.
    You might want to try replacing your preferences.

  • Problems with SoapMessage Handler in SJS AS 8.1

    Hi!
    I try to post it in this forum as well, since there is no response in the WebService forum, and it also seems to be a problem with the application server.
    I have problems with execution of standard soap message handler.
    Both webservice and handler is of "HelloWorld" and is generated in the NetBeans 4.1 IDE and follows the standards of WebService and GenericHandler
    When I try the WebService Runtime testtool integrated in NetBeans, the handler and webservice works fine on the localhost SJS AS 8.1. Then I try to execute the same wsdl from other test environment(like soapscope) and I receive an error from the SJS AS(JAXRPC.TIE.04: Internal Server Error (JAXRPCTIE01: caught exception while handling request: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.impl.TextImpl))
    Then I try to deploy without references to the handler in the webservice.xml, and then webservice works fine.(also through soapscope).
    Is there some server settings that I have missed??
    I also have the latest build of NetBeans 4.1 and a standalone version of SunAppserver 8.1(Sun Java System Application Server Platform Edition 8.1 2005Q2 UR2)
    Stacktrace from the server:
    [#|2005-06-16T14:11:09.546+0200|WARNING|sun-appserver-pe8.1_02|javax.enterprise .system.container.web|_ThreadID=16;|preWebHandlerError
    java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.impl.TextImpl
    at com.sun.xml.rpc.server.StreamingHandler.getOpcodeForRequestMessage(StreamingHan dler.java:628)
    at com.sun.enterprise.webservice.WsUtil.getInvMethod(WsUtil.java:943)
    at com.sun.enterprise.webservice.ServletPreHandler.handleRequest(ServletPreHandler .java:55)
    at com.sun.xml.rpc.client.HandlerChainImpl.handleRequest(HandlerChainImpl.java:86)
    at com.sun.xml.rpc.server.StreamingHandler.callRequestHandlers(StreamingHandler.ja va:918)
    at com.sun.xml.rpc.server.StreamingHandler.preHandlingHook(StreamingHandler.java:8 31)
    at no.vsusdag.ws.DagWSEPSEI_Tie.preHandlingHook(DagWSEPSEI_Tie.java:236)
    at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:102)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate. java:443)
    at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:653)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:534)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.jav a:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    |#]
    [#|2005-06-16T14:11:09.546+0200|SEVERE|sun-appserver-pe8.1_02|com.sun.xml.rpc.s erver|_ThreadID=16;|com.sun.xml.messaging.saaj.soap.impl.TextImpl
    java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.impl.TextImpl
    at com.sun.enterprise.webservice.WsUtil.throwSOAPFaultException(WsUtil.java:972)
    at com.sun.enterprise.webservice.ServletPreHandler.handleRequest(ServletPreHandler .java:68)
    at com.sun.xml.rpc.client.HandlerChainImpl.handleRequest(HandlerChainImpl.java:86)
    at com.sun.xml.rpc.server.StreamingHandler.callRequestHandlers(StreamingHandler.ja va:918)
    at com.sun.xml.rpc.server.StreamingHandler.preHandlingHook(StreamingHandler.java:8 31)
    at no.vsusdag.ws.DagWSEPSEI_Tie.preHandlingHook(DagWSEPSEI_Tie.java:236)
    at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:102)
    at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate. java:443)
    at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:653)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:534)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.jav a:403)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    |#]
    Hope someone have some tips and can help me.
    thanks
    Dag Arvola

    Hi,
    I too use SOAPScope and have faced the same problem.
    With some trial and error figured out that the problem is possibly with the way the XML string is parsed by the Message Handler classes.
    Here is the detail and hope it helps you too. The work around is to remove any white spaces / new line chars following the <Body> tag.
    Rgds, Rajasekhar
    I uploaded a SOAPScope workspace with different message invocations, with the "Message Handler" configured.
    The work space is @
    http://www.mindreef.net/tide/shared/workspace/e36d678cbb35389dd238fa16a8cdeb14
    The 1st Message is the one captured in SOAPScope, while invoked from the NetBeans IDE itself.
    If you observe the 3rd message that failed and the 4th Message that works, the only difference is the string that is posted to the Web Service URI.
    From Resend > Preview Edit
    3rd Message is a properly formatted xml document with the third line reading as just
    <soap:Body>
    where as
    4th Message is not a properly formatted xml document with the third line reading as
    <soap:Body><mrns0:createCustomer>
    Even a <Space> as in "<soap:Body> <mrns0:createCustomer>" causes a SOAP Fault to occur.
    *********************

  • NetBeans with Mobility Pack 5.0 Build problem

    Hi! i�m newbie with this, a have a project and it doesn�t compile, i have deleted all sources, and it doesn�t compile neither. I�m developing for BlackBerry. This is the output (when i press F5). PLEASE HELP!.
    pre-init:
    pre-load-properties:
    exists.config.active:
    exists.netbeans.user:
    exists.user.properties.file:
    load-properties:
    exists.platform.active:
    exists.platform.configuration:
    exists.platform.profile:
    init:
    post-init:
    pre-preprocess:
    deps-jar:
    conditional-clean:
    pre-clean:
    do-clean:
    Deleting directory C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\preprocessed
    Deleting directory C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\compiled
    Deleting: C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\before-obfuscation.jar
    Deleting: C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\obfuscated.jar
    Deleting directory C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\obfuscated
    Deleting directory C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\preverified
    post-clean:
    Post clean
    preprocess:
    Created dir: C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\preprocessed
    Pre-processing 0 file(s) into C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\preprocessed directory.
    post-preprocess:
    extract-libs:
    Created dir: C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\compiled
    pre-compile:
    compile:
    post-compile:
    obfuscate-check:
    pre-obfuscate:
    obfuscate:
    Building jar: C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\before-obfuscation.jar
    Copying jar file (C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\before-obfuscation.jar) to C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\obfuscated.jar.
    Created dir: C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\obfuscated
    Expanding: C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\obfuscated.jar into C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\obfuscated
    post-obfuscate:
    pre-preverify:
    preverify:
    Created dir: C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\preverified
    Preverifying 4575 file(s) into C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\build\preverified directory.
    Error preverifying class a.a.a.a.g
    java/lang/NoClassDefFoundError: java/io/Serializable
    C:\Documents and Settings\spablo\Escritorio\SFA_NetBeans\SFA_NetBeans\nbproject\build-impl.xml:269: Preverification failed with error code 1.
    BUILD FAILED (total time: 35 minutes 8 seconds)
    Thanks in advance. Guillermo.

    I am trying to make an application with mobility pack
    5, it has quite a lot of code (around 22000 lines)
    but it seems the largest .java file netbeans can
    handle is 1mb is there anything i can do about this?Usually java files that large are a product of bad programming. I can't tell if that is true in your case, but I would suggest splitting stuff up in several files.

  • [SOLVED] NetBeans won't start

    Hello guys, I have a problem with Netbeans, it get stuck in the splashscreen when it says Reading module storage, the splashscreen close and nothing, just like if I never start it, the only way I can open it is with sudo, and like normal user the only way it starts is deleting everything that is on the ~/.cache/netbeans directory, but when I reopen it the problem come back.
    Last edited by unknow04 (2014-08-20 06:24:00)

    Thanks, that works.
    for those who want a quick answer, just add this to your /usr/share/netbeans/etc/netbeans.conf
    netbeans_jdkhome="/usr/lib/jvm/java-8-openjdk"
    OR
    netbeans_jdkhome="/usr/lib/jvm/java-7-openjdk"
    depending on your version
    Last edited by unknow04 (2014-08-20 06:25:08)

  • Missing method body or declare abstract error

    Hi!
    I have been working on this simple Java 1.3.1 program for three days now and cannot figure out what I am doing wrong. If anyone has done the "Building an Application" tutorial in the New to Java Programming Center, you might recognize the code. I am trying to set up a frame with panels first using the BorderLayout and then the FlowLayout within each section of the BorderLayout. It will have textfields and checkboxes. I am working on the code to retrieve the user input from the text boxes and also to determine which checkbox the user has checked. Here is my code: (ignore my irrelivent comments!)
    import java.awt.*;
    import javax.swing.*;
    import java.io.*;
    import java.awt.event.*;
    import java.awt.Color.*;
    import java.awt.Image.*;
    //Header Comment for a Routine/Method
    //This method gathers the input text supplied by the user from five text fields on the Current
    //Purchase tab of the tabbed pane of the MPGLog.java program. The way it gathers the text
    //depends on the current processing state, which it retrieves on its own. It saves the text to
    //a text file called textinput.txt.
    public class CollectTextInput extends JPanel implements ActionListener
    { // Begin class
         //Declare all the objects needed first.
         // These are the text fields
         private JTextField currentMileage;
         private JTextField numofGallonsBought;
         private JTextField dateofPurchase;
         private JTextField pricePerGallon;
         private JTextField gasBrand;
         // Declaring the Labels to go with each TextField
         private JLabel lblcurrentMileage;
         private JLabel lblnumofGallonsBought;
         private JLabel lbldateofPurchase;
         private JLabel lblpricePerGallon;
         private JLabel lblgasBrand;
         // Declaring the Checkboxes for the types of gas bought
         private JCheckBox chbxReg;
         private JCheckBox chbxSuper;
         private JCheckBox chbxUltra;
         private JCheckBox chbxOther;
         private JCheckBox chbxHigher;
         private JCheckBox chbxLower;
         // Declaring the Buttons and images needed
         private JButton enter;
         private JButton edit;
         //private JButton report; //Will be used later
         private JLabel bluecar;          //Used with the ImageIcon to create CRV image
         private JPanel carimage;     //Used in buildImagePanel method
         private JPanel datum;          //Used in buildDatumPanel method
         private JPanel gasgrade;     //Used in buildGasTypePanel method.
         //Declaring the Panels that need to be built and added
         //to the border layout of this panel.
         //private JPanel panlimages;
         //private JPanel panltextinputs;
         //private JPanel panlchkBoxes;
         // Class to handle functionality of checkboxes
         ItemListener handler = new CheckBoxHandler();
         // This is where you add the constructor for the class - I THINK!!
         public CollectTextInput()
         { // Opens collectTextInput constructor
              // Must set layout for collectTextInput here
              // Choosing a BorderLayout because we simply want to
              // add panels to the North, Center and South borders, which, by
              // default, will fill the layout with the three panels
              // we are creating
              setLayout(new BorderLayout());
              //Initialize the objects in the constructor of the class.
              //Initialize the textfields
              currentMileage = new JTextField();
              numofGallonsBought = new JTextField();
              dateofPurchase = new JTextField();
              pricePerGallon = new JTextField();
              gasBrand = new JTextField();
              // Initialize the labels that go with each TextField
              lblcurrentMileage = new JLabel("Enter the mileage at the time of gas purchase: ");
              lblnumofGallonsBought = new JLabel("Enter the number of gallons of gas bought: ");
              lbldateofPurchase = new JLabel("Enter the date of the purchase: ");
              lblpricePerGallon = new JLabel("Enter the price per gallon you paid for the gas: ");
              lblgasBrand = new JLabel("Enter the brand name of the gas: ");
              //Initialize the labels for the checkboxes.
              chbxReg = new JCheckBox("Regular ", true);
              chbxSuper = new JCheckBox("Super ");
              chbxUltra = new JCheckBox("Ultra ");
              chbxOther = new JCheckBox("Other: (Choose one from below) ");
              chbxHigher = new JCheckBox("Higher than Ultra ");
              chbxLower = new JCheckBox("Lower than Ultra ");
              //Initialize the buttons that go on the panel.
              enter = new JButton("Save Data");
              edit = new JButton("Edit Data");
              //Initialize the image that oges on the panel.
              bluecar = new JLabel("2002 Honda CR-V", new ImageIcon("CRVBlue.jpg"),JLabel.CENTER);
              // Now bring it all together by calling the other methods
              // that build the other panels and menu.
              buildImagePanel();
              buildDatumPanel();
              buildGasTypePanel();
              // Once the methods above build the panels, this call to add
              //  them will add the panels to the main panel's border
              // layout manager.
              add(datum, BorderLayout.NORTH);
              add(carimage, BorderLayout.EAST);
              add(gasgrade, BorderLayout.CENTER);
         } // Ends the constructor.
            // This method creates a panel called images that holds the car image.
         public void buildImagePanel();
         { // Opens buildImagePanel.
              // First, create the Panel
              carimage = new JPanel();
              //Second, set the color and layout.
              carimage.setBackground(Color.white);
              carimage.setLayout(new FlowLayout());
              // Third, add the image to the panel.
              carimage.add(bluecar);
         }// Closes buildImagePanel
         //This method creates a panel called datum that holds the text input.
         public void buildDatumPanel();
         { //Opens buildDatumPanel
              // First, create the Panel.
              datum = new JPanel();
              //Second, set the background color and layout.
              datum.setBackground(Color.white);
              datum.setLayout(new GridLayout(2, 4, 20, 20));
              //Third, add the textfields and text labels to the panel.
              datum.add(lblcurrentMileage);
              datum.add(currentMileage);
              datum.add(lblnumofGallonsBought);
              datum.add(numofGallonsBought);
              datum.add(lbldateofPurchase);
              datum.add(dateofPurchase);
              datum.add(lblpricePerGallon);
              datum.add(pricePerGallon);
              datum.add(lblgasBrand);
              datum.add(gasBrand);
              //Optionally - Fourth -set a border around the panel, including
              // a title.
              datum.setBorder(BorderFactory.createTitledBorder("Per Purchase Information"));
              //Fifth - Add listeners to each text field to be able to
              //  know when data is input into them.
              currentMileage.addActionListener(this);
              numofGallonsBought.addActionListener(this);
              dateofPurchase.addActionListener(this);
              pricePerGallon.addActionListener(this);
              gasBrand.addActionListener(this);
         }// Closes buildDatumPanel
         // This method builds a panel called gasTypePanel that holds the checkboxes.
         public void buildGasTypePanel()
         { // Opens buildGasTypePanel method
              // First, create the panel.
              gasgrade = new JPanel();
              // Second, set its background color and its layout.
              gasgrade.setBackground(Color.white);
              gasgrade.setLayout(new GridLayout(5, 1, 10, 20));
              // Third, add all the checkboxes to the panel.
              gasgrade.add(chbxReg);
              gasgrade.add(chbxSuper);
              gasgrade.add(chbxUltra);
              gasgrade.add(chbxOther);
              gasgrade.add(chbxHigher);
              gasgrade.add(chbxLower);
              //Optionally, - Fourth - set a border around the panel, including
              // a title.
              gasgrade.setBorder(BorderFactory.createTitledBorder("Gas Type Information"));
              // Fifth - CheckBoxes require a CheckBox Handler.
              // This is a method created separately
              // outside of the method where the checkboxes are added to
              // the panel or where the checkboxes are even created.
              // This method (CheckBox Handler) implements and ItemListener
              // and is a self-contained method all on its own. See
              // the CheckBox Handler methods following the
              // actionPerformed method which follows.-SLM
         } // Closes the buildGasTypePanel method
    // Create the functionality to capture and react to an event
    //   for the checkboxes when they are checked by the user and
    //   the text fields to know when text is entered. Also to react to the
    //   Enter button being pushed and the edit button being pushed.
    public void actionPerformed(ActionEvent evt)
    { // Opens actionPerformed method.
         if((evt.getSource() == currentMileage) || (evt.getSource() == enter))
              { // Opens if statement.
                // Retrieves the text from the currentMileage text field
                //  and assigns it to the variable currentMileageText of
                //  type String.
                String currentMileageText = currentMileage.getText();
                lblcurrentMileage.setText("Current Mileage is:    " + currentMileageText);
                // After printing text to JLabel, hide the text field.
                currentMileage.setVisible(false);
           } // Ends if statement.
          if((evt.getSource() == numofGallonsBought) || (evt.getSource() == enter))
              { // Opens if statement.
                // Retrieves the text from the numofGallonsBought text field
                //  and assigns it to the variable numofGallonsBoughtText of
                //  type String.
                String numofGallonsBoughtText = numofGallonsBought.getText();
                lblnumofGallonsBought.setText("The number of gallons of gas bought is:    " + numofGallonsBoughtText);
                // After printing text to JLabel, hide the text field.
                numofGallonsBought.setVisible(false);
           } // Ends if statement.
           if((evt.getSource() == dateofPurchase) || (evt.getSource() == enter))
                     { // Opens if statement.
                       // Retrieves the text from the dateofPurchase text field
                       //  and assigns it to the variable dateofPurchaseText of
                       //  type String.
                       String dateofPurchaseText = dateofPurchase.getText();
                       lbldateofPurchase.setText("The date of this purchase is:    " + dateofPurchaseText);
                       // After printing text to JLabel, hide the text field.
                       dateofPurchase.setVisible(false);
           } // Ends if statement.
           if((evt.getSource() == pricePerGallon) || (evt.getSource() == enter))
                            { // Opens if statement.
                              // Retrieves the text from the pricePerGallon text field
                              //  and assigns it to the variable pricePerGallonText of
                              //  type String.
                              String pricePerGallonText = pricePerGallon.getText();
                              lblpricePerGallon.setText("The price per gallon of gas for this purchase is:    " + pricePerGallonText);
                              // After printing text to JLabel, hide the text field.
                              pricePerGallon.setVisible(false);
           } // Ends if statement.
           if((evt.getSource() == gasBrand) || (evt.getSource() == enter))
                       { // Opens if statement.
                         // Retrieves the text from the gasBrand text field
                         //  and assigns it to the variable gasBrandText of
                         //  type String.
                         String gasBrandText = gasBrand.getText();
                         lblgasBrand.setText("The Brand of gas for this purchase is:    " + gasBrandText);
                         // After printing text to JLabel, hide the text field.
                         gasBrand.setVisible(false);
           } // Ends if statement.
           // This provides control statements for the Edit button. If the
           //  Edit button is clicked, then the text fields are visible again.
           if(evt.getSource() == edit)
           { // Opens if statement.
             // If the edit button is pressed, the following are set to
             //  visible.
                currentMileage.setVisible(true);
                numofGallonsBought.setVisible(true);
                dateofPurchase.setVisible(true);
                pricePerGallon.setVisible(true);
                gasBrand.setVisible(true);
         }// Closes if statement.
    } // Closes actionPerformed method.
         private class CheckBoxHandler implements ItemListener
         { // Opens inner class
              public void itemStateChanged (ItemEvent e)
              {// Opens the itemStateChanged method.
                   JCheckBox source = (JCheckBox) e.getSource();
                        if(e.getStateChange() == ItemEvent.SELECTED)
                             source.setForeground(Color.blue);
                        else
                             source.setForeground(Color.black);
                        }// Closes the itemStateChanged method
                   }// Closes the CheckBoxHandler class.
    } //Ends the public class collectTextInput classThe error I keep receiving is as follows:
    C:\jdk131\CollectTextInput.java:128: missing method body, or declare abstract
         public void buildImagePanel();
    ^
    C:\jdk131\CollectTextInput.java:142: missing method body, or declare abstract
         public void buildDatumPanel();
    ^
    2 errors
    I have looked this error up in three different places but the solutions do not apply to what I am trying to accomplish.
    Any help would be greatly appreciated!! Thanks!
    Susan

    C:\jdk131\CollectTextInput.java:128: missing methodbody, or declare ?abstract
    public void buildImagePanel();^
    C:\jdk131\CollectTextInput.java:142: missing methodbody, or declare abstract
    public void buildDatumPanel();Just remove the semicolons.
    Geesh! If I had a hammer I would be hitting myself over the head with it right now!!! What an obviously DUMB newbie mistake!!!
    Thanks so much for not making me feel stupid! :-)
    Susan

  • How to create check box in tabular form

    Dear Friends
    i have craeaed tabular form .Recently all column are default text field but i want to change some column from text field to check box .
    i have try it with simple check box but there is no option to pass return value in to table.
    How to create check box in tabular from.
    select
    "CLAIM_ID",
    "CLAIM_ID" CLAIM_ID_DISPLAY,
    "EMPLOYEE_ID",
    "CLAIM_DATE",
    "START_FROM",
    "END_TO",
    "REIMB_NAME",
    "REIMB_AMOUNT",
    "REMARK",
    "ACTIVE_FLAG",
    "STATUS",
    "APPROVE_NO",
    "APPROVE_FLAG"
    from "EMP_REIMBURSEMENT_DTL
    {code}
    i want to change column from text field to Check box
    Cplumn Name :
    1.ACTIVE_FLAG Return value 'Y'
    2.STATUS Return Value "APPROVE"
    How to pass it with check box in tabular form.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Visit this demo app:
    http://apex.oracle.com/pls/otn/f?p=31517:1
    Section VI has a lot of tabular form stuff with checkbox handling.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Create Check box in Tabular form and report

    This is Marilyn. I wanted to know if anybody can help me with the following scenario.
    I created tabular form which has some LOV columns, and some check boxes. When the user clicks on "add row" button, I want to populate the row with the values from the LOV display to be selected by user, and some of the blank check box also display as empty check box in order for user to select check or uncheck them.
    If this is possible, can you provide an example?
    Thanks

    Visit this demo app:
    http://apex.oracle.com/pls/otn/f?p=31517:1
    Section VI has a lot of tabular form stuff with checkbox handling.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Binding definition error with programmed binding classes

    Hi all,
    640/NW04s/ECC5 SP14 system, I'm trying to use a programmed container->container binding class.
    I've created my class implementing interface IF_SWF_IFS_BIND_TRANSFORM_CONT, but when I try to put it into the binding editor, it complains with:
    SWF_BND_001/100: Error when executing binding operaton 'CNT'
    I've tried all sorts, even gone as far as implementing the presentation interface and giving it a little icon in the binding editor (nice touch!).
    Looks nice, but still no joy so back to basics: I figured to make sure there's no problem with my code I created two completely empty classes, one for Expression->Expression binding and one for Container->Container binding. The binding editor is happy with the expression binding class, but still gives the same message about the container binding class.
    No luck with any notes on OSS, any input welcome...
    Cheers
    Mike
    (Cross-posted to SAP-WUG and SDN-BPM)

    Hi
    I have had the same problem but if you tick the checkbox handle error as warning
    it works. Now I will try to code and see the results...
    this workflow is very heavy tool...

  • Issues With Move Tool on Elements 12

    I have elements 12 on my windows 7 laptop. my problem is I open up a new project and open up any image or photoshop file to drag it over to add it to my project but the image does not transfer to the other project tab, it stays in the original tab. I can easily do it with elements 11 but I've had elements 12 since it came out and it's been a really frustrating problem as I want to be able to use elements 12 now instead. I've tried using holding down the control button and have tried looking around for this issue but so far I haven't seen anyone with this issue with a windows laptop, just Macs, please help!

    Originally Posted by sarsippius
    I had to move a user from one PO to another. The user opened their Groupwise only to find that all messages are gone. The folder structure is there, but no emails. The user database is still on the old server, and about 80% on the new server.
    I was able to look under Move Status, and it says 'Retry mailbox item retrieval.
    Any help would be greatly appreciated!
    There should be different options available in the user move status for that user, including the option to retry the entire move from the start. In many cases this is recoverable by retrying the move. Other options are possible if this fails.
    Before doing so, have a read through Tommy's cool solution & the Novell documentation (if not already done so) on the details of the move.
    ! Also make sure you have set both POA's to verbose logging so you can monitor the move messages from the sending as well as receiving end.
    A detailed article on moving users in GroupWise Communities ARTICLE: User Move Within GroupWise
    (looking at section 6.2 and on there are some tips/suggestions on how to handle stuck moves - reading the whole article will give a good overview and handle)
    Extra info:
    Novell docs on the move process (and preparations): Novell GroupWise 8 Documentation
    GroupWise Wiki with additional info : Moving GroupWise Users - CoolSolutionsWiki
    Hope that helps,
    Willem

  • Regarding PropertyEditors and Customizers

    I hesitate to post here given the number of EJB-focused posts (?) in this forum.
    In case anyone remotely connected with the JavaBeans specification monitors this forum (since the contact email address in the Java Beans specification bounces):
    If I return a custom editor from a PropertyEditor (a Component) or if I have in my hand a Customizer (which is specified to also be a Component), what additional restrictions are there on these classes?
    Am I guaranteed (at least by intention) that the components will not be Window subclasses? If they are indeed not Window subclasses, how do I communicate to them that they are to either commit or cancel their changes when the window I put them in closes? May I assume they provide their own OK/Cancel buttons (this would seem to contradict, however, the intention of the specifications)?
    My questions are laid out in an entry in http://jroller.com/page/ljn/.
    Thanks,
    Laird

    Hi Laird,
    First, I've only used JavaBeans with the Netbeans 5.5.1 IDE, so the details may vary for another IDE or version.
    If you are using Netbeans then I strongly recommend nabble.com's netbeans.org forum, lots of netbeans users (including the developers) are active there, and they're very helpful.
    I'm not sure exactly what you're asking, but it sounds like you could do with getting one "wired up", so I'll just describe how I got Customizers to work. (I've not implemented my own PropertyEditors yet).
    Imagine an example javabean called MyJavaBean with and it's customizer MyJavaBeanBeanInfo.
    I'd make the Customizer by subclassing JPanel (any java.awt.Component will apparently do though) and implementing the Customizer interface, in the following way:
    1. The Customizer publishes itself from the bean info class by using something like:
    public BeanDescriptor getBeanDescriptor() {
      return new BeanDescriptor(MyJavaBean.class,MyJavaBeanCustomizer.class);
    }2. Implement the Customizer interface methods using the (conveniently provided) PropertyChangeSupport class:
      MyJavaBean myJavaBeanObj;
      private PropertyChangeSupport support;
    /** Sets the bean object reference and updates values in the customizer GUI
       *  required by Customizer interface */
      public void setObject(Object bean) {
        myJavaBeanObj = (MyJavaBean)bean;
        // todo:
        // - setup the customizer's gui components depending upon the attributes of the bean. e.g.
        //       blahTextField.setText(myJavaBeanObj.getBlah()):
      /** property change support, required by Customizer interface */
      public void addPropertyChangeListener(PropertyChangeListener l) {
        support.addPropertyChangeListener(l);
      /** property change support, required by Customizer interface */
      public void removePropertyChangeListener(PropertyChangeListener l) {
        support.removePropertyChangeListener(l);
      }3. Provide a no-argument constructor for Netbeans to instantiate the Customizer.
    4. When Netbeans instantiates the customizer it automatically provides it with a title bar and a Close button, but no Apply button. So add one!
    5. Implement an action listener to handle Apply button presses. This is also the point at which you change the javabean's attributes and fire a property change event for Netbeans. For example I could update my javabean's "blah" attribute (from a text field in the Customizer called "blahTextField") using something like this:
       /** handling of Customizer GUI actions */
       public void actionPerformed(ActionEvent e) {
         if (e.getSource()==applyButton) {
           myJavaBeanObj.setBlah(blahTextField.getText());
           support.firePropertyChange("blah",null,null);
       }I'm not sure exactly why "null, null" are passed as parameters, but it seems that this call just fires the property change event which Netbeans then handles by looking directly at the java bean anyway (and ignores these parameter values, which seems a bit odd!).
    Hope this helps.
    Dougall

  • Manual tabular form and hidden fields

    Hi,
    I have a manual tabular form with some hidden fields, one for the primary key and one to handle my checkbox.
    The checkbox handling I got from here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:123:4202825883202781:::::
    Here you can see my very simple example:
    http://apex.oracle.com/pls/otn/f?p=22968:3:4142231640027285:::::
    My query:
    select
    to_char(dag,'day dd mon yyyy') dag
    , HTMLDB_ITEM.HIDDEN(1,pk) pk
    , htmldb_item.text(2, ben1) ben1
    , htmldb_item.text(3, ben2) ben2
    , htmldb_item.text(4, ben3) ben3
    , htmldb_item.text(5, ben4) ben4
    , htmldb_item.hidden(6, cb1) cb1_hidd
    , htmldb_item.checkbox(7, ROWNUM, NULL,DECODE (cb1, 'Y', ROWNUM)) cb1
    from dummy
    My problem is that I don't want to show the columns hidden_pk and hidden_cb1. But if I set them to not shown they are not parsed in my html page. Maybe that's all natural but how do I handle this problem??
    Any ideas?
    Regards Daniel

    Stick them to another item, like this
    select
    to_char(dag,'day dd mon yyyy') dag
    , htmldb_item.text(2, ben1) || HTMLDB_ITEM.HIDDEN(1,pk) ben1
    , htmldb_item.text(3, ben2) ben2
    , htmldb_item.text(4, ben3) ben3
    , htmldb_item.text(5, ben4) || htmldb_item.hidden(6, cb1) ben4
    , htmldb_item.checkbox(7, ROWNUM, NULL,DECODE (cb1,
    'Y', ROWNUM)) cb1
    from dummy

  • Remove Default br tag in RichText

    When I set the 'removeSingleParagraphContainer' property to true, the RichText editor inserts a <br> tag even if there is no text.  Is there a way to stop this?

    <?xml version="1.0" encoding="UTF-8"?>
    <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
        jcr:primaryType="cq:TabPanel"
        activeTab="0"
        helpPath="en/cq/current/wcm/default_components.html#Text Image"
        xtype="tabpanel">
        <items jcr:primaryType="cq:WidgetCollection">
            <tab2
                jcr:primaryType="cq:Widget"
                cropParameter="./imageCrop"
                ddGroups="[media]"
                fileNameParameter="./fileName"
                fileReferenceParameter="./fileReference"
                mapParameter="./imageMap"
                name="./file"
                requestSuffix=".img.png"
                rotateParameter="./imageRotate"
                sizeLimit="100"
                title="Image"
                uploadUrl="/tmp/upload/*"
                xtype="smarterimage"/>
           <tab3
                jcr:primaryType="cq:Widget"
                prefix="."
                title="Advanced Image Properties"
                xtype="ImageProperties"/>
            <tab4
                jcr:primaryType="cq:Widget"
                xtype="configcomponentstyles"/>
        </items>
    </jcr:root>
    The portion that actually declares the RichText fields is in a separate js file here:
    CN.Author.widgets.ImageProperties = CQ.Ext.extend(CQ.Ext.Panel, {
        prefix             : './image',
        renditionOptions   : [],
        rendition          : null,
        selectedRendition  : null,
        componentPath      : null,
        ORIGINAL           : "[0:0]",
        USE_SIZE           : "[-1:-1]",
        constructor: function(config) {
            this.CN   = this.CN || {};
            config    = config || {};
            CN.Author.widgets.ImageProperties.superclass.constructor.call(this, config);
        initComponent: function() {
            var
                me = this,
                dialog,
                tabPanel,
                 * Populates the panel's form fields.
                 * @param {Object} data An object containing metadata
                 * @private
                populate = function(data) {
                    var
                        fieldPanel = this.getComponent('imageProperties_panel');
                    fieldPanel.getComponent('imageProperties_title').setValue(data['dc:title']);
                    fieldPanel.getComponent('imageProperties_alt').setValue(data['dc:title']);
                    fieldPanel.getComponent('imageProperties_credit').setValue(data['dc:title']);
                    fieldPanel.getComponent('imageProperties_desc').setValue(data['dc:description']);
                 * Checkbox handler, which is called with every check.
                 * @param {CQ.Ext.form.Checkbox} checkbox The checkbox that has been checked/unchecked
                 * @param {Boolean} isChecked True if checked
                 * @private
                checkHandler = function(checkbox, isChecked) {
                    if (isChecked) {
                        populate.call(this, this.CN.imageMetaData);
                damBox = new CQ.Ext.form.Checkbox({
                    disabled       : true,
                    fieldLabel     : 'Use DAM Meta'
                saveRendition = new CQ.form.Selection({
                    fieldLabel     : 'Save this new rendition',
                    name           : './saveRendition',
                    type           : "checkbox"
                rendition = new CQ.form.Selection({
                    name           : './rendition',
                    fieldLabel     : "Rendition:",
                    type           : "select",
                    listeners      : {
                        selectionchanged     : function() {
                            var
                                newValue  = this.getValue(),
                                sizeField = me.fieldPanel.get('imageProperties_size');
                            if (newValue === me.ORIGINAL) {
                                 sizeField.reset();
                                 sizeField.setDisabled(true);
                            else if (newValue === me.USE_SIZE) {
                                sizeField.setDisabled(false);
                                sizeField.reset();
                            else {
                                sizeField.reset();
                                sizeField.setDisabled(true);
                        loadContent         : function(field,record,path){
                            me.selectedRendition = record.data.rendition;
                fieldPanel   = new CQ.Ext.Panel({
                    frame        : false,
                    border       : false,
                    layout       : 'form',
                    autoScroll   : true,
                    autoHeight   : true,
                    itemId       : 'imageProperties_panel',
                    cls          : 'imagePropertiesPanel',
                    items        : [
                            itemId                            : 'imageProperties_title',
                            name                                  : this.prefix + '/jcr:title',
                            xtype                             : 'textfield',
                            fieldLabel                        : 'Title',
                            width                             : '95%'
                            itemId                            : 'imageProperties_alt',
                            name                              : this.prefix + '/alt',
                            xtype                             : 'textfield',
                            fieldLabel                        : 'Alt Text',
                            width                             : '95%'
                            itemId                            : 'imageProperties_link',
                            name                              : this.prefix + '/linkURL',
                            xtype                             : 'pathfield',
                            fieldLabel                        : 'Link to',
                            parBrowse                         : true,
                            width                             : '95%'
                            itemId                            : 'imageProperties_credit',
                            name                              : this.prefix + '/photoCredit',
                            xtype                             : 'richtext',
                            fieldLabel                        : 'Photo Credit',
                            width                             : '95%',
                            height                            : 100,
                            removeSingleParagraphContainer     : true,
                            singleParagraphContainerReplacement: 'div',
                            rtePlugins                        : {
                                misctools: {
                                    features: ['specialchars', 'sourceedit'],
                                    specialCharsConfig: {
                                        chars: {
                                            "copyright": {
                                                "entity": "&copy;"
                                            "degree": {
                                                "entity": "&deg;"
                                            "elipses": {
                                                "entity": "&#133;"
                                            "latin": {
                                                "rangeEnd": "255",
                                                "rangeStart": "192"
                                            "leftanglequote": {
                                                "entity": "&laquo;"
                                            "misc": {
                                                "rangeEnd": "152",
                                                "rangeStart": "145"
                                            "morefractions": {
                                                "rangeEnd": "8543",
                                                "rangeStart": "8531"
                                            "percentage": {
                                                "rangeEnd": "47",
                                                "rangeStart": "32"
                                            "register": {
                                                "entity": "&reg;"
                                            "rightpointquote": {
                                                "entity": "&raquo;"
                                            "trademark": {
                                                "entity": "&#153;"
                                            "vulgarfractions": {
                                                "rangeEnd": "190",
                                                "rangeStart": "188"
                            itemId                            : 'imageProperties_desc',
                            name                              : this.prefix + '/jcr:description',
                            xtype                             : 'richtext',
                            fieldLabel                        : 'Caption',
                            width                             : '95%',
                            height                            : 100,
                            removeSingleParagraphContainer     : true,
                            rtePlugins                        : {
                                misctools: {
                                    features: ['specialchars', 'sourceedit'],
                                    specialCharsConfig: {
                                        chars: {
                                            "copyright": {
                                                "entity": "&copy;"
                                            "degree": {
                                                "entity": "&deg;"
                                            "elipses": {
                                                "entity": "&#133;"
                                            "latin": {
                                                "rangeEnd": "255",
                                                "rangeStart": "192"
                                            "leftanglequote": {
                                                "entity": "&laquo;"
                                            "misc": {
                                                "rangeEnd": "152",
                                                "rangeStart": "145"
                                            "morefractions": {
                                                "rangeEnd": "8543",
                                                "rangeStart": "8531"
                                            "percentage": {
                                                "rangeEnd": "47",
                                                "rangeStart": "32"
                                            "register": {
                                                "entity": "&reg;"
                                            "rightpointquote": {
                                                "entity": "&raquo;"
                                            "trademark": {
                                                "entity": "&#153;"
                                            "vulgarfractions": {
                                                "rangeEnd": "190",
                                                "rangeStart": "188"
                            itemId            : 'imageProperties_size',
                            widthParameter    : this.prefix + '/width',
                            heightParameter   : this.prefix + '/height',
                            xtype             : 'sizefield',
                            fieldLabel        : 'Size',
                            disabled          : true
                        damBox,
                        rendition,
                        saveRendition
            CN.Author.widgets.ImageProperties.superclass.initComponent.call(this);
            this.rendition     = rendition;
            this.fieldPanel    = fieldPanel;
            this.add(fieldPanel);
            this.CN.damBox     = damBox;
            this.CN.damBox.on('check', checkHandler, this);
            dialog             = this.findParentByType("dialog");
            tabPanel           = this.ownerCt;
            if (dialog) {
                dialog.on("loadcontent", function() {
                     this.onLoadContent(dialog.path);
                }, this);
            if(tabPanel) {
                tabPanel.on("tabchange",function(tabPanel, tab) {
                    if(tab.xtype === 'ImageProperties') {
                         this.onActivate(tab);
                }, this);
         * Overrides CQ.Ext.Panel.onRender.  Find the smarterimage component and register a callback onto
         * the CN.customEvents.DAM.response event.
        onRender: function (ct, pos) {
            var
                ownerCt          = this.ownerCt,
                items            = null,
                imgCmpt          = null,
                i                = 0,
                len              = 0;
            if (typeof ownerCt !== "undefined") {
                items = ownerCt.items.items;
                len   = items.length;
                for (i = 0; i < len; i++) {
                    imgCmpt = (imgCmpt === null) ? ((items[i].xtype === "smarterimage") ? items[i] : null) : imgCmpt;
                if (imgCmpt !== null) {
                    // Let's know about all the images loading on the smarterimage widget
                    imgCmpt.on('CN.customEvents.DAM.response', this.onDamResponse, this);
            CN.Author.widgets.ImageProperties.superclass.onRender.call(this, ct, pos);
        onLoadContent: function(path) {
            this.componentPath = path;
        onActivate: function(tab) {
            var
                sizes,
                rendition,
                option;
            if (this.renditionOptions.length === 0) {
                sizes = CN.Author.Util.getConfiguration("dam/sizes");
                this.renditionOptions.push({'text':'-Use size field-','value':this.USE_SIZE});
                this.renditionOptions.push({'text':'Original Size','value':this.ORIGINAL});
                for(rendition in sizes) {
                    if(sizes.hasOwnProperty(rendition)){
                        option = {};
                        if(!rendition.match(/jcr/g)) {
                            option['text']  = rendition;
                            option['value'] = sizes[rendition];
                            this.renditionOptions.push(option);
            if (this.renditionOptions.length > 0) {
                this.rendition.setOptions(this.renditionOptions);
                this.rendition.setValue(this.selectedRendition);
         * CN.customEvents.DAM.response handler.
         * @param {Object} metaData The metadata object from the HTTP response of smarterimage
         * @public
        onDamResponse: function(metaData) {
            this.CN.damBox.enable();
            this.CN.imageMetaData = metaData;
    CQ.Ext.reg('ImageProperties', CN.Author.widgets.ImageProperties);

  • How to handle multiple selection in the Spark List control with checkbox as itemrenderer?

    Hi All,
    I am using checkbox as an ItemRenderer in spark list.
    I have a query.
    how to handle multiple selection in the Spark List control with checkbox as itemrenderer?
    how to retrieve the selected item label?
    Thank you in advance.

    Hi there, I'll tweak your code a little bit to something like this:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="vertical">
        <mx:Script>
            <![CDATA[
                 import mx.events.ListEvent;
                 import mx.controls.CheckBox;
               [Bindable]
               private var mySelectedIndexes:ArrayCollection=new ArrayCollection();
                private function onChange(e:ListEvent):void
                   if(CheckBox(e.itemRenderer).selected){
                             mySelectedIndexes.addItem(e.rowIndex);
                   }else{
                                  mySelectedIndexes.removeItemAt(mySelectedIndexes.getItemIndex(e.rowIndex));     
                   chkList.selectedIndices=mySelectedIndexes.toArray();
            ]]>
        </mx:Script>
    <mx:ArrayCollection id="collection">
            <mx:Object label="Test A"/>
            <mx:Object label="Test B"/>
            <mx:Object label="Test C"/>
            <mx:Object label="Test D"/>
            <mx:Object label="Test E"/>
            <mx:Object label="Test F"/>
            <mx:Object label="Test G"/>
        </mx:ArrayCollection>
    <mx:List id="chkList" dataProvider="{collection}" itemRenderer="mx.controls.CheckBox"  itemClick="onChange(event);" allowMultipleSelection="true"/>
    </mx:Application>

Maybe you are looking for

  • IPhone 3G won't show up in iTunes but does in System Profiler

    So early today, when I was clicking check for updates every half hour like everyone else waiting for 3.0 to go live I had this crop up. I had quit iTunes, unplugged the iPhone (2.2.1) and when I plugged it in.. nothing.. didn't even get the chirp fro

  • MSI Twin Forzer GTX 760 no longer recognised in Windows or showing in BIOS

    This evening when I switched on my PC, I got no signal to my monitor. * I checked all the connections from my DVI -> VGA connector * I Tried with an HDMI cable Both would no produce a signal.  I then checked in the BIOS (MSI z87-g65) and the PCIe 16x

  • My iPhone 4s no longer has volume control

    I can't get my iPhone volume control to work for my videos and music.  Phone volume works fine.  It shows some weird doc connector button, and if an airport is buy it will show it.  But when i try to play some music or video I have no volume bar to c

  • Apex 4.2 Integration with EBS R12.1.1

    Hi Guys, We followed the document "Oracle Applications Express The Fast Way to Extend the Oracle E-Business Suite By Rod West, Cabot Consulting [http://www.oracle.com/technetwork/developer-tools/apex/apex-ebs-wp-cabot-consulting-169064.pdf] After doi

  • Lost purchased songs on my computer

    Lost purchased songs on my computer buy have them on my iPad..how do I get them on my computer