[svn:fx-trunk] 6201: Introduces a new method to the IItemRendererOwner contract, updateRendererInformation(), which handles the setting of a renderer' s data and data-dependant properties.

Revision: 6201
Author:   [email protected]
Date:     2009-04-22 14:15:50 -0700 (Wed, 22 Apr 2009)
Log Message:

Well the answer depends on whether you want to use the DefaultTableModel or a custom TableModel. The key point to either solution is that you want to store all the data in the table model.
1) Using the DefaultTableModel
All the data from your Person object is added to the model. By default the table will create a column for each column of data added to the model. However, this doesn't mean that you need to display every column in the table. After creating the JTable you can simply do:
table.getColumnModel().removeColumn(...);to remove the columns you don't have room to display. You can still access the values in the model by using:
table.getModel().getValueAt(...);2) Create a custom TableModel
You can keep all the data in your Person object and then write a custom model to access the data. Something like this example:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=610618
Note: the example isn't complete as you still need methods to add each Person object or the entire List of Persons to the model.
Again, you would need to remove the columns you don't want displayed.
In either case you can then handle the tooltip by overriding the getTooltipText(...) method. Something like:
public String getToolTipText( MouseEvent e )
     int row = rowAtPoint( e.getPoint() );
     int column = columnAtPoint( e.getPoint() );
     Object value = getValueAt(row, column);
     return value == null ? null : value.toString();
}

Similar Messages

  • [svn:fx-trunk] 12542: When adding a mask to the display list need to validate it and all its children .

    Revision: 12542
    Revision: 12542
    Author:   [email protected]
    Date:     2009-12-04 10:38:32 -0800 (Fri, 04 Dec 2009)
    Log Message:
    When adding a mask to the display list need to validate it and all its children.  Previously the children were not validated and their display list was updated before properties were committed or measure was done.  RichText was not set up to handle this.
    QE notes:
    Doc notes:
    Bugs: SDK-24511
    Reviewer:  Evtim, Deepa
    Tests run: checkintests, fxg, primitives, Group
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24511
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/utils/MaskUtil.as

    AFAIK, the only way to do this is to write a system modifcation.
    The BADI is executed only once at startup of the session, so that makes it merely static. (A strange point in time, I discussed it with SAP and they just shook their heads)
    I had the same problem with some other F4-Helps and it was a big hazzle. From my experience, no straight answer.

  • [svn:fx-trunk] 11595: Checking in Sujata' s fix to FXGUtils for SDK which handles implicit close paths correctly.

    Revision: 11595
    Author:   [email protected]
    Date:     2009-11-09 16:34:49 -0800 (Mon, 09 Nov 2009)
    Log Message:
    Checking in Sujata's fix to FXGUtils for SDK which handles implicit close paths correctly.
    QE notes: Please retest bug test case.
    Doc notes: N/A
    Bugs:
    SDK-23093 - Unclosed path in static FXG displays with horizontal glitch
    Reviewer: Sujata
    Tests run: Checkintests, Bug test case
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23093
    Modified Paths:
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/swf/FXG2SWFTranscoder.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/GraphicContentNode.ja va
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/ShapeHelper.java

  • HT201250 Hi, I hope this question won't seem too basic but if I want to use a new larger external drive for my time machine backups, will it do a new full backup the first time I plug it in and if so, do I really need all the old backups on my smaller ext

    Hi, I hope this question won't seem too basic but if I want to use a new larger external drive for my time machine backups, will it do a new full backup the first time I plug it in and if so, do I really need all the old backups on my smaller external drive?

    50maz wrote:
    Hi, I hope this question won't seem too basic but if I want to use a new larger external drive for my time machine backups, will it do a new full backup the first time I plug it in
    Yes, it will do a full backup.
    and if so, do I really need all the old backups on my smaller external drive?
    Only if you want to be able to go back in time to those previous Time Machine backups.  When you plug in the new larger external drive, you will only be able to go back as far as the first day you plugged it in and ran the first Time Machine backup on it.

  • Im using intel macbook pro 13" and since I'm using the new OSX Lion, the keyboard backlit won't turn off and it's eating up my precious battery. Im always mobile so this is very important. Apple doing something to fix this bug immediately?

    Im using intel macbook pro 13" and since I'm using the new OSX Lion, the keyboard backlit won't turn off and it's eating up my precious battery. Im always mobile so this is very important. Apple doing something to fix this bug immediately?

    multiplryan wrote:
    To be totally honest, about 3 weeks prior I spilled some milk from cereal on the desk and a little bit got onto the battery.
    I don't think you have a case.
    You can replace the logic board yourself if you are a DIY'er and save some money.

  • HT1386 I want to give me old iphone 4 to my daughter and need to get all her info from her old iphone onto a new computer.  The PC she synced with is dead and she does not want to loose all her contacts and music.

    I want to give my old iphone 4 to my daughter and need to get all her info from her old iphone 3 onto a new computer.  The PC she synced with is dead and she does not want to loose all her contacts and music. How can I do this?

    To effectively transfer ownership of the iPhone requires that it be "restored" as a new device.
    ...  The PC she synced with is dead
    The iPhone is not a backup device. Your computer backs up the iPhone, not the other way around. What you use to back up your computer is up to you - Macs use Time Machine. I assume PCs use something similar.
    If her PC backup is dead you will have difficulty extracting content from the iPhone since it is not designed to work that way.
    All her Apple purchases can easily be transferred to another iPhone. However, her contacts will be gone, as will any music or other contact obtained from sources other than Apple.
    There are a number of third party utilities that claim to be able to extract content from an iPhone. See wjosten's procedure here:
    https://discussions.apple.com/docs/DOC-3141

  • Error while adding a new method to the Session Bean

    Hello everyone. I'm using jdev 11g, ejb, jpa & jsf. Everything works fine. But when I try to add a custom method to the Session Bean, I'm having an error.
    Here is my steps:
    1) I added a new method to SessionBean.java. Something like this:
    public void Hello() {
    System.out.println("Hello!");
    2) Then using Structure palette I exposed this method through Local interface and created data control
    3) Finally, I made a command button binded to this method (just droped it from DataControls.dcx to my page)
    When I start the page and click the button, I'm having the following error:
    Error 500--Internal Server Error
    javax.faces.el.EvaluationException: Method not found: Hello.execute(javax.faces.event.ActionEvent)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1227)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
    ... (I've truncated the log because there is nothing important in the missing part)

    Yes, I have binding in the page def. Everything is correct there:
    <methodAction id="Hello" RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="Hello" IsViewObjectMethod="false"
    DataControl="PriceServiceLocal"
    InstanceName="PriceServiceLocal.dataProvider"/>
    I've droped the method from the Data Controls panel

  • [svn:fx-trunk] 11118: Did some code cleanup on the Spark components to enforce the conventions about how to order stuff within an AS file .

    Revision: 11118
    Author:   [email protected]
    Date:     2009-10-23 16:35:38 -0700 (Fri, 23 Oct 2009)
    Log Message:
    Did some code cleanup on the Spark components to enforce the conventions about how to order stuff within an AS file.
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: None; no functional changes
    Tests run: ant checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.a s
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTex tBase.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as

    Hi Rod,
    different sources (i.e. different branches) are mapped to different local folders in your workspace - in fact you cant map two different server folder to the same local folder.
    In you example the mapping would be (for example) like this:
    Server path                                                          
    local path
    $/../WpfHelloWorld                                                
    C:\Src\WpfHelloWorld
    $/../WpfHelloWorldDev                                           
    C:\Src\WpfHelloWorldDev             
    You can see your Workspace mappings when you select "Workspaces..." in the Workspace selection drop down:
    Within the "Manage Workspaces" dialog select your workspace and klick "Edit" to see and edit all you mappings.

  • [svn:fx-trunk] 12963: Add IDebuggerCallbacks.terminateDebugTarget(), so that the debugger can override the default termination behavior.

    Revision: 12963
    Revision: 12963
    Author:   [email protected]
    Date:     2009-12-15 10:34:20 -0800 (Tue, 15 Dec 2009)
    Log Message:
    Add IDebuggerCallbacks.terminateDebugTarget(), so that the debugger can override the default termination behavior.
    Modified Paths:
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/DefaultDebuggerCallbacks.ja va
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/IDebuggerCallbacks.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSession.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSessionManag er.java

    Gordon, it looks like its been a while since you made this post.  Not sure how valid it is now...   I am particularly interested in the LigatureLevel.NONE value.  It seems that it is no longer supported.
    How do I turn of ligatures in the font rendering?
    My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase.  Is there any way (even roundabout) to turn ligatures off in flash?
    Thanks,
    Om

  • [svn:fx-trunk] 11727: You can' t just assume the first shader filter in a maskee object' s filter array is the luminosity shader when rendering a luminosity mask.

    Revision: 11727
    Author:   [email protected]
    Date:     2009-11-12 12:58:37 -0800 (Thu, 12 Nov 2009)
    Log Message:
    You can't just assume the first shader filter in a maskee object's filter array is the luminosity shader when rendering a luminosity mask. Instead, we now loop through all the filters in the array and search for the luminosity shader.
    QE notes: None
    Doc notes: None
    Bugs: SDK-24180
    Reviewer: Ryan
    Tests run: FXG runtime, FXG static
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24180
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicEleme nt.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Calling a method in the backing bean when rendering a table

    I'm rendering a table that begins with :
    <h:dataTable value="#{showRooms.rooms}" var="rowRoom" ...
    There are several properties I'm displaying. Some are just displayed as they appear from the database like:
    <h:outputText value="#{rowRoom.roomNumber}"/>
    However, some I need to translate so they display a more meaningful message to the users. For example, status is stored 'A', or 'NA', but this should display 'Available' or 'Not Available'. To do this, I'm taking an idea I saw in another forum by providing a method to call and translate the text. For example:
    public String getDisplayedStatus(String status) {
    if (status.equals("A") {
    return "Available";
    } else {
    My problem is how can I invoke a method and pass in the current value of status for that row in the table. I think I need something like this:
    <h:outputText value="#{showRooms.getDisplayedStatus(#{rowRoom.roomStatus})"/>
    But that doesn't work. I can invoke the getDisplayedStatus method when passing in a hardcoded parameter, but it won't translate the value of both expressions(the method and the method param). How can I achieve this?
    Thanks,
    Mike

    Yes. I've done that and it does work....sort of. It works as long as I refer to it as 'displayStatus'. It looks up the getDisplayStatus and returns a value. The problem is getting the current status value from the object in the List. For example, the 3rd row in the table has either 'A;' or 'NA' for status. I need to know this value in order to do my translation. The way I see it, I either need
    1.)a way to call a method on the backing bean and pass the value of status from the current row into the method.
    -or-
    2.)in getDisplayStatus, I need a way to access the current row's value, perhaps through an expression. This appears to be what you can do in the AbstractPageBean class that all backing beans inherit in Studio Creator. I've seen code in a getter like 'getValue(#{currentRow.status}'), but I don't know how that is done. I looked for the source to AbstractPageBean on the web but couldn't find it - maybe its not open-source.
    Anyway, please share if anyone has a solution. I'm sure this has been done before.
    Thanks,
    Mike

  • [svn:osmf:] 10543: Additional unit tests for VASTTrackingProxyElement, covering the start, 1q, midpoint, 3q, complete, pause, and mute events.

    Revision: 10543
    Author:   [email protected]
    Date:     2009-09-23 12:17:22 -0700 (Wed, 23 Sep 2009)
    Log Message:
    Additional unit tests for VASTTrackingProxyElement, covering the start, 1q, midpoint, 3q, complete, pause, and mute events.
    Modified Paths:
        osmf/trunk/libs/VAST/org/openvideoplayer/vast/media/VASTTrackingProxyElement.as
        osmf/trunk/libs/VASTTest/org/openvideoplayer/vast/media/TestVASTTrackingProxyElement.as
    Added Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/utils/TimerTemporalTrait. as

  • [svn:bz-trunk] 22381: Add some unit tests for the flex.messaging.client. FlexClientManager, including one for the new getFlexClient(String id, boolean createNewIfNotExist) method signature.

    Revision: 22381
    Revision: 22381
    Author:   [email protected]
    Date:     2011-09-02 05:10:41 -0700 (Fri, 02 Sep 2011)
    Log Message:
    Add some unit tests for the flex.messaging.client.FlexClientManager, including one for the new getFlexClient(String id, boolean createNewIfNotExist) method signature.
    Added Paths:
        blazeds/trunk/modules/core/test/src/flex/messaging/client/
        blazeds/trunk/modules/core/test/src/flex/messaging/client/FlexClientManagerTest.java

  • [svn:fx-trunk] 8563: When integrating TLF Build 468, the scrapToPaste() method of PasteOperation needs to be replaced by textScrap.clone(), not just textScrap.

    Revision: 8563
    Author:   [email protected]
    Date:     2009-07-14 14:47:50 -0700 (Tue, 14 Jul 2009)
    Log Message:
    When integrating TLF Build 468, the scrapToPaste() method of PasteOperation needs to be replaced by textScrap.clone(), not just textScrap.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Carol to review
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

  • [svn:bz-trunk] 23960: Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel

    Revision: 23960
    Revision: 23960
    Author:   [email protected]
    Date:     2012-06-15 04:15:18 -0700 (Fri, 15 Jun 2012)
    Log Message:
    Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel
    While invalidating session, make sure a new one does not get created.
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java

Maybe you are looking for