Which component

Be gentle, I am new to Flex.
On the Flex.org site, in the Showcase,
http://flex.org/showcase/
Which component is being used to display the list? Is it a
styled datagrid?
Many thanks,
john

Yes, I would only show the minimum needed, and leave editing/detailed views/whatever to dialog boxes.
The layout I had in mind is actually the same you proposed, I abandoned the idea of buttons inside the list.
My problems are more of technical nature:
I need to be able to select an item on the list, and the component must know which element I selected, so I don't know what is better, if JList or JTable. I don't need direct editing, that can be done by separate dialogs.
TableModel dataModel = new AbstractTableModel() {
          public int getColumnCount() { return 10; }
          public int getRowCount() { return 10;}
          public Object getValueAt(int row, int col) { return new Integer(row*col); }
      JTable table = new JTable(dataModel);this is the code I found at the JTable Sun documentation: http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTable.html
The problem is that the Model only has methods that read data, and not to write it. So, if f.e. I use addColumn, where is it going to add the new column?
PS: everything was so easy and simple with GUI editors for other languages, but here everything is so different and strange, I think I'm gonna cry T_T
Edited by: Mesh on Oct 11, 2008 8:51 AM

Similar Messages

  • Determing which component from a custom TreeCellRenderer was clicked on

    hi,
    i've been experimenting with finding which component has been clicked on in a JTree which has a custom tree cell renderer. I've got a piece of code that appears to work, but am unsure if this is the proper way to go about doing this, and whether it might fail under some circumstances.
    any help appreciated,
    asjf
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    public class JTreeTest1 {
       public static void main(String[] arg) throws Exception {
          final JTree tree = new JTree();
          final TreeCellRenderer renderer = new MyRenderer();
          tree.setCellRenderer(renderer);
          tree.addMouseListener(new MouseAdapter() {
             public void mouseClicked(MouseEvent e) {
                int x = e.getX(), y = e.getY();
                int row = tree.getRowForLocation(x,y);
                TreePath path = tree.getPathForLocation(x,y);
                if(path!=null) {
                   Object o = path.getLastPathComponent();
                   Rectangle r = tree.getPathBounds(path);
                   // how to detect what component has been clicked on?
                   // simplification: pretend all boolean state has no effect on renderer (which is true for the renderer below)
                   Component renderedComponent = renderer.getTreeCellRendererComponent(tree, o, false, false, false, row, false);
                   renderedComponent.setBounds(r);
                   int _x = (int) ((double)e.getX() - r.getX());
                   int _y = (int) ((double)e.getY() - r.getY());
                   Component clickedUpon = SwingUtilities.getDeepestComponentAt(renderedComponent, _x, _y);
                   if(clickedUpon instanceof JLabel) {
                      JLabel jl = (JLabel) clickedUpon;
                      System.out.println(jl.getText());
          JFrame frame = new JFrame("JTreeTest1");
          frame.getContentPane().add(tree);
          frame.pack();
          frame.setVisible(true);
    class MyRenderer extends JPanel implements TreeCellRenderer {
       JLabel custom;
       public MyRenderer() {
          super(); // flow layout
          add(new JLabel("Hello"));
          add(custom = new JLabel());
          custom.setOpaque(true);
          custom.setBackground(UIManager.getColor("Tree.background"));
          custom.setForeground(UIManager.getColor("Tree.foreground"));
          add(new JLabel("World"));
       public Component getTreeCellRendererComponent(JTree tree, Object value, boolean isSelected, boolean expanded,
                                                     boolean leaf, int row, boolean hasFocus)
          custom.setText("("+value.toString()+")");
          return this;
    }

    My only advice would be to remember that rendered components are not actually added to the tree, so they are not a child of the tree... they actually cannot be clicked on. The rendered components are quickly used just to paint and specific image and then discarded (which is why you don't typically want to create new ones each time). When you click on the tree, there is no "rendered component" there, just an image that was painted.
    Hope this helps
    Josh Castagno
    http://www.jdc-software.com

  • Which component do I need ?

    Which component do I need ? I want to connect my iPhone/iPad/iMac over wifi to a Bose dock system. Do I need a airport extreme or apple tv

    Airport Express or Extreme if you plug it into the speaker port on the Airport.

  • Which component do I need to paste images, pictures from the clipboard.

    Hey all,
    I've made a java-application and with a click on a button, I jump to a drawprogramme.
    When I've finished my picture, copied i to the clipboard(ctrl c), I want to show it in my application.
    How can I do this and in which component must I paste it?
    Thanks.

    This is the code I use:
    Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
    Transferable transferable = clipboard.getContents(this);
    if (transferable.isDataFlavorSupported(DataFlavor.imageFlavor)) {
    try {
    //pp is my panel to paste in
    pp.image = (Image)transferable.getTransferDataDataFlavor.imageFlavor);
    pp.repaint();
    catch (Exception ex) {
    System.out.println(ex);
    Sometimes it works, but mostly I receive a black box.

  • Ideas to display which component drives the other components in the canvas

    I have 4 components in my canvas and I would like to learn some ideas from gurus on what are the best ways to display which component drives (drills down)  the other components in the dashboard.  Any info would be appreciated.

    Hi,
    There is no such rule on which component should drive other in Xcelsius. It all depends upon the data that you are using. Always a component with summarized data should drive a component with granular data. For eg: If you are showing Total sales in a country using Column chart and want to drilldown to the percentage of sales in each region of a particular country , you can use pie chart to show it. Here Column chart drives Pie chart and u can show this in other way also.
    Hope it helps!
    Thanks,
    Arun US

  • Find out which component on the UI is listening and changing to the click event?

    Hello Forum,
    Is there a way in flex to know which component is taking the click event which is being bubbled to the topLevelApplication. I'm clicking it and some container in the parent hierarchy is invalidating/refreshing the screen on click, so the child ficker's on click.

    You need to put traces or alerts for each container till topLevelApplication, in order to know which is flickering the click...
    Hope you got my point!!!
    If this post answers your question or helps, please kindly mark it as such.

  • Which component do I need to download to access blue carpet?

    Hello, I am looking for blue carpet. I just downloaded Mainstage and started downloading components. I really dont want to waste memory with downloading unnessary components. So could someone please direct me to which component to download for synth pads-blue carpet? Thanks.

    Hi,
         When I set up a channel strip in MainStage (MS) v2.2.2, it comes up as a channel strip which uses the EXS24 sampler, which is one of the virtual instruments that comes as part of the basic MS package, to my recollection.  A little more digging reveals that the Blue Carpet channel strip uses the 05 Synthesizers | 02 Synth Pads | Softpad 1 patch for the EXS24 then adds in compression, EQ, etc. as effects.  I would think that you can go to the MainStage menu at the top of the screen and select Download Additional Content then select the Logic Pro & MainStage Essential Content item, or perhaps the next one -- Logic Pro & MainStage Additional Content.  This might overwrite stuff you want to keep!  In lieu of that, I could send you the patch file Softpad 1.exs and the channel strip file Blue Carpet.cst and you could copy them manually to the proper locations.
         I was under the impression that you accidently deleted the patch/channel strip.  Upon reading again your post, I guess I spent too much time digging!  Download the essential content first and check.  If not there, get the additional content.
    Art

  • Which component will do Indexing in UCM ?

    Hi All,
    I have few quires related to UCM.
    1--> Which component do the Indexing in UCM ?
    2--> UCM will support parallel workflow/Sequential work flow/Both?
    3-->Shall i start subworkflow directly?
    Thanks.

    Delete card

  • ECM belongs  to which component

    Dear All,
    ECM belongs to which component whether it comes PLM,PP or Cross Application Component.
    Regards,
    Srini

    Hi,
    ECM is a part of mySAP PLM. If you want see a more details, go through the following website.
    http://service.sap.com/plm or http://service.sap.com/eco
    Regards,
    Srini Nookala

  • Which component fired phase listener ?

    Hi,
    - I have a custome PagePhaseListener and I would like to know which component of a page fired the listener. Something like:
    public void beforePhase(PagePhaseEvent event) {
    // log the event.getSource().toString()
    - However the code event.getSource().toString() returns the controller object itself and not the object which fired the lifecycle.
    Thank you in advance.

    I could get which component fired an adf page lifecycle inspection the resquest. Here is the code:
    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
    Map requestMap = externalContext.getRequestMap();
    Set set = requestMap.entrySet();
    Iterator i = set.iterator();
    while(i.hasNext()) {
    Map.Entry me = (Map.Entry)i.next();
    ILogger.log(this.getClass(), ILogger.TRACE, "request map entry: " + "key: " + me.getKey() + " value: " + me.getValue());
    Inserting this code on my custom phase listener I could verify that my master detail implementation was fireing two many requests and what component was responsible of that. Look for keys oracle.adfinternal.view.faces.event.rich.ClientEvents key and oracle.adfinternal.view.faces.renderkit.newStreamingRecords

  • Which component creates a titled border

    Which component can I use to create a titled border around a group of radio buttons. I can't seem to find which component it is.
    Thanks

    How to Use Borders
    http://java.sun.com/docs/books/tutorial/uiswing/misc/border.html
    Create a panel, set the border and add your radio buttons to the panel.

  • Which Component or container in Swing allow to Display new Windows

    Which Component or container in Swing allow to Display new Windows as like property windows , nevigator windows as with most of IDE (like netBeans)and also when windows is closed that space is utilized by existing open other windows, if new window open than it adjust to existing open widow so that both window open side by side, vertically or horizontally
    I want it
    help me

    hi!
    JDesktopPane - JInternalFrame - JLayeredPane
    http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html
    :)

  • Determine which component fired an action

    I don't see anywhere where I can determine from an IWDCustomEvent which component fired the event.
    I was hoping to setup a help system and wanted one single method to handle all the help events. It was my hope to determine which component fired the event that called the method and use that to determine which text to display.
    Any help would be appreciated.

    You can use event parameter mapping for this. Example: You have 2 buttons "Button1", "Button2" and assign the same action to their "onAction" event.
    Now you can add a parameter "button" to the action, and use parameter mapping code (or declaratively, if available in your IDE).
    wdDoModifyView(...)
      if (firstTime)
        IWDButton button1 = (IWDButton) view.getElement("Button1");
        button1.mappingOfOnAction().addParameter("button", button1.getId());
        IWDButton button2 = (IWDButton) view.getElement("Button2");
        button2.mappingOfOnAction().addParameter("button", button2.getId());
    Then action handler parameter "button" will contain the ID of the button that triggered the action.
    Armin

  • Excel Loading Scenario - Which Component ?

    Hi, i have a xlsx workbook with 20 worksheets, each worksheet has a number of ranges in it (a1 - d4, a6 - e20 and so on).
    I would like to redev it with the most suitable excel component (the previous developer used Excel + / CozyRoc but i am not going to put this on a prod server so am curious as to the alternative).
    A nice to have would be a enable a loop to utilise spreadsheet metadata which is loaded to a set of tables, and just have 1 DFT to process all 20 worksheets and constituent ranges in each w/sheet. 
    Can anyone suggest a suitable component for this scenario ? I would like to avoid parsing the file using c# if at all possible.
    Thanks in advance

    20 worksheets is not to many, if CozyRoc is a no go I'd go with runing SQL against the canned Excel Source (via OLEDB) against each sheet. Just more time, but the automaton may take as long.
    An example is in this thread: https://social.msdn.microsoft.com/forums/sqlserver/en-US/42d50689-7242-4a12-944b-207ce13350b6/using-select-statement-in-ssis-on-excel-source
    Arthur
    MyBlog
    Twitter

  • Which component to chose in my use case ( BPEL / OSB / Mediator)

    All,
    I have gone through various blogs and documentation explaining the reasons for choosing a specific component,But,It is always a close call when it comes to making a very important decision as
    the real time uses case we generally deal with always fall in a border making it difficult to decide.
    Use case:
    A legacy system has to communicate with a third party system for sending some job details. For the same it uses an service intermediary.
    This service intermediary has to
    a) Receive the message from the legacy system. ( Preferably as EDN event as its easy for the legacy system to through an event)
    b) Very light orchestration ( in the future)
    c) Route it to the Mobile enablement application/ system.
    Generic:
    d) Need to provide a fault management / handling.
    e) Authentication / Authorization.
    Having these requirements, I thought an OSB would be a right component to be used as we are focused on routing in a decoupled way with light orchestration and business agility. However can OSB support
    a. subscribe to EDN events ? If yes how ? Can it have Oracle Apps adapter to get the events from R12 like BPEL?
    b. Can it use the same fault management framework written for SOA suite ( policies and bindings) ?
    On the other hand, I am having thoughts on why not use BPEL process itself. We can turn Auditing to off and will not have any dehydration points in the bpel process thus making it stateless ( just like OSB ?) if that is the major difference we are looking at ? Service virtualization ( dynamically changing the end point ) can also be acheived in bpel.
    and why not Mediator ? I know everywhere people talk about using mediator for intra composite commmunication but at the same time they suggest using it while writing to file / adapter or call a external service exposed as SOAP WSDL too. Now for our use case, a mediator can listen to events from the legacy system and route it to the target mobile enablement service.
    ( Note : BPEL and mediator can use fault management , EDN's, Oracle apps adapter and also can be made stateless by turning the audit to off . So if you are still suggesting OSB please back it up with strong reason rather than just theoritcally saying that its a standard to use in case of routing and stateless etc..)
    Kindly help !
    Regards,
    Sridhar.

    Realized that OSB can
    a. Read an AQ using AQ adapter and thus can subscribe to the Events raised using AQ in Oracle Ebsuiness Suite applications.
    b. OSB has its own way of handling faults. ( does not use SCA fault handling framework).
    The important question I want to focus here is
    In the above use case when everything can be acheived using either of OSB, BPEL or Mediator. ( ie., from ease of developement, performance and management) how to chose a specific component ?
    Service virtualization that OSB boasts can be done by BPEL.
    BPEL can also be made lieght weight by turning the dehydration to off ( auditing to off)
    Result cache can be achieved in bpel by using some custom coherence api.( which is one time effort and simple to use)
    Message throttling can be done using a queue in between.
    Really need a very practical reason to prefer OSB and not BPEL or Mediator in my case. Help appreciated

Maybe you are looking for

  • Advantages and features of crystal report 13.0.2000.0

    Hi.. i was using crystal report10.5 with visual studio 2008(c#).. recently we migrated to vs2010 and sap crystal reports.. what are the advantages of sap crystal reports13.0.2000.0 when compare to crystal report10.5 ?... is there any new features add

  • Three questions about customizing the infoview

    Post Author: heathdallison CA Forum: Publishing I've been asked to use the infoview rather than code my own .net solution for displaying reports. I'm relatively new to this approach and I'm beating my head against the wall trying to figure out how to

  • Barrette Mémoire RAM non reconnue

    Bonjour, Hello, Google translation: "I installed a IBM Thinkpad T30 2 strips of 512 MB memory each. But the system does detect that either: while 512 in bank 0 / 1 - DIMM1 Nothing in Bank 2 / 3 DIMM2 indicating "empty" under SisoftSandra Lite I teste

  • Is there a Front Row update in Tiger?

    Is there a way to upgrade Front Row (my version is 1.3.1) without going to Leopard / 10.5 ?

  • Auto Assigning Requisitions to Buyers by Commodity

    I'm trying to determine how to set up preferences or rules to auto assign requisitions to Buyers by commodity classification. Interestingly it appears that I can appear multiple buyers to a commodity- but only one commodity to a buyer which is totall