Z-order in HBox

Hello,
I have a HBox containing two custom nodes.
HBox{
   content:[node1, node2]
}OnMouseEntered node1 shows a rectangle. The position of this rectangle depends on the mouse position. So it is possible that the rectangle overlaps with node2. Now when this overlapping happens, the rectangle appears behind node2. Ho can i manage to get the rectangle appearing 'on top' ?
I know about toFront() and toBack(). But when using those methods, the horizontal order of my nodes is changed - which is not wanted.
thanks!

Hi,friend if u need node1 apears always in front of node2 you should change your code to,HBox{content[node2,node1]},but if u wanna it be dynamic in change make binding to reverse.
var HboxContent = [node1,node2];
HBox{content:bind if(node1.translatX == node2.translatX and node1.translatY == node2.translatY) reverse HboxContent else HboxContent}
But I prefer u use the first method,HBox{content[node2,node1]}.
I hope this can help u
Best regards

Similar Messages

  • Custom node not appearing in hbox

    I can insert this custom node into an hbox (I scanned the hbox and verified their existence), but the contents of the frame from the fxz file do not show up.
    My objective:
    -I have a series of fxz files (frames) that I wish to put into an hbox
    -Each frame, when clicked on, will animate, when off screen, the animation will be toggled off (i.e. myCustomNode.action.play();)
    -If I simply insert the contents of an fxz file (which I can) I don't see a universal way to turn animations on/off as I don't want frames eating up cpu cycles if they are off the viewing area
    Custom node is as follows:
    public class frameNode extends CustomNode{
        public var frameNumber;
        public var fxdContent;
        public var actualFrame;
        public var action;
        ///Get image content from fxz file
        public function configureFrame() : Void{
            fxdContent = FXDLoader.loadContent("{__DIR__}testFrame{frameNumber}.fxz");
            actualFrame = fxdContent.getRoot();
            action = fxdContent.getObject("move") as Timeline;
        override function create(): Node {
            def frameNodeGroup : Group = Group {
                content: [ actualFrame  //content from frame ]
            return frameNodeGroup;
    }Using the custom node class I've defined, I can't seem to insert the node itself but only the node's pubic variable 'actualFrame'
            var newFrame : frameNode = frameNode{
                frameNumber: frameNumber
            newFrame.configureFrame(); //fetches the content of the fxz file and assigns it to variable 'actualFrame'
            insert newFrame.actualFrame into myHbox.content; //works
            //insert newFrame into myHbox.content;  //this will NOT workEdit:
    -It turns out that invoking the .configureFrame() method as how I did above was the problem. Instead, I invoked it within the node class itself. As soon as the custom node receives a frame number (i.e. which file to point to) it fetches the FXZ content.

    Hi Ada,
    Please find below a very useful blog on configuring & working with SUS user defined fields.
    Ordering Unit vs Order Pricing Unit in SRM-SUS
    Hope this should solve your problem.
    Regards
    Kathirvel

  • Accessing objects in an HBox

    I seem to be struggling with some UI concepts.
    I have a ListView that I'm populating with Task. I understand that fairly well.
    Once the ListView is populated, each item represents a new long running Task. When the user kicks off those subsequent tasks, I want to provide feedback on progress as the application loops through each. I thought the best way to do this is would be with an HBox. Each ListView row consists of an HBox, which in turn contains a ProgressIndicator and the name of the long running task. So in my first long Running task used to populate the ListView, I do something roughly like this:
    updateMessage("Start");
    items = FXCollections.observableArrayList();
    For Loop
        HBox hbox = new HBox();
        hbox.setAlignment(Pos.CENTER_LEFT);
        hbox.setSpacing(10);
        ProgressIndicator pi = new ProgressIndicator();
        pi.setVisible(false);
        pi.setProgress(0);
        Text t = new Text("MyLabel");
         hbox.getChildren().addAll(pi, t );
         items.add(hbox);
    updateMessage("Done");What I'm unsure of is how to access the ProgressIndicator in the main thread in order to bind it to the second series of long running tasks. I was thinking I could loop through the ListView, then query the HBox in each item for the ProgressIndicator. But that doesn't seem possible.
    I ended up creating a separate List of ProgressIndicators in the main thread that I pass into the long running Tasks. Now my Task looks something like this:
    public class MyTask extends Task<ObservableList<HBox>>
        private List<ProgressIndicator> progress
        public MyTask (List<ProgressIndicator> progress
            this.progress = progress;
        @Override
        public ObservableList<HBox> call()
            ObservableList<HBox> items = null;
            updateMessage("Start...");
            // For loop here to loop through all items
            // for(int i=0; i < items; i++
            HBox hbox = new HBox();
            hbox.setAlignment(Pos.CENTER_LEFT);
            hbox.setSpacing(10);
            Text t = new Text("My Label");
            hbox.getChildren().addAll(progress.get(i).pi, t );
            items.add(hbox);
            updateMessage("Done " );
            return items;
    }Then when I kick of the secondary long running tasks, I bind the correct ProgressIndicator in the list to the Task (s)
    progress.get(0).pi.progressProperty().bind(myNewTask.progressProperty());I feel I'm missing something and there is a better way?

    I think you really should create a template for the cells in your ListView, which can be reused for displaying the progress and name of your tasks.
    You do this by setting a cellFactory on your ListView, which is nothing more than a Callback that provides an object descendant from ListCell.
    These ListCell's are re-used by the ListView -- usually it will create one cell for each visible row in the ListView, and call updateItem on them to make them represent a value from the underlying model.
    I'd start by creating a small class that represent the description + progress of a Task, something like this:
    public class LongRunningTask {
      private final StringProperty description = new SimpleStringProperty();
      private final DoubleProperty progress = new SimpleDoubleProperty();
      StringProperty descriptionProperty() { return description; }
      DoubleProperty progressProperty() { return progress; }
    }Then I'd make the ListView of the type ListView<LongRunningTask> and set your own Cell Factory.
    Then your ListCell class should be something like this:
    public class MyListCell extends ListCell {
      private HBox hbox = new HBox();
      private ProgressIndicator indicator = new ProgressIndicator();
      private Label label = new Label();
      public MyListCell() {
        hbox.getChildren().addAll(indicator, label);
      public void updateItem(LongRunningTask task, boolean empty) {
        super.updateItem(task, empty);
        if(!empty) {
          label.textProperty().bind(task.descriptionProperty());
          indicator.progressProperty().bind(task.progressProperty());
          setGraphic(hbox);
    }That's about it, I hope it gives you some ideas :)
    (All code typed from memory, so fix spelling/compile errors yourself)

  • ChoiceBox tab-order weirdness

    I have been having trouble with tab-order and ChoiceBox controls in JavaFX 1.3.1.
    Generally the tab-order of controls seems natural and logical: left-to-right top-to-bottom. ChoiceBox controls break that left-to-right rule and somehow promote themselves to the front of their row's tab-order, regardless of their horizontal position.
    For example:
    Stage {
        title: "Tab Order Weirdness"
        scene: Scene {
            width: 400
            height: 100
            content: [
                VBox{
                    content:[
                        TextBox{text: "Text Box 1"}
                        HBox{
                            content:[
                                TextBox{text: "Text Box 2.1"}                           
                                ChoiceBox{items: ["a","b","c"]}
                                TextBox{text: "Text Box 2.3"}
                                ChoiceBox{items: [1,2,3]}
                                TextBox{text: "Text Box 2.5"}
                        TextBox{text: "Text Box 3"}
    }Expected tab-order would be:
    <top row>TextBox <middle row>TextBox, ChoiceBox, TextBox, ChoiceBox, TextBox <last row> TextBox <loop back to top>
    Actual tab-order was:
    <top row>TextBox <middle row>ChoiceBox, ChoiceBox, TextBox, TextBox, TextBox <last row> TextBox <loop back to top>
    It doesn't seem to matter what method of positioning is used, specifying explicit layout gives the same problem as letting HBox or some other layout class do it.
    This is a bug right? Any ideas how to sidestep this issue short of redesigning my layout?

    It works for me. I have windows XP. Netbeans 6.9.1. Javafx 1.3.1
    Actual tab-order is:
    <top row>TextBox <middle row>TextBox, ChoiceBox, TextBox, ChoiceBox, TextBox <last row> TextBox <loop back to top>

  • Hbox in view stack does not update width

    Hi there,   I'm working on flash builder and I have four hboxes nested inside a view stack. I dynamically populate each hbox with images grabbed from the database. For some reason only the visible hbox correctly updates its' width while the other 3 hbox takes on the width of this one so I end up with all four hbox having the same width. This is a problem when I have lots of images in one than the other and some of them gets cut off.
    The hboxes do not have scroll bars as the viewstack has a mouse easing scroller function attached to it - the hbox scrolls according to the position of the mouse.
    Am I doing something wrong here?
    <mx:Canvas height="110"
                       width="663"
                       visible.loginState = "false"
                       x="10"
                       y="577" horizontalScrollPolicy="off" verticalScrollPolicy="off" id="viewStackContainer">
                <mx:ViewStack id="myViewStack" creationPolicy="all"
                              borderStyle="none">
                    <!-- Books Library -->
                    <mx:HBox horizontalAlign="left" verticalScrollPolicy="off" horizontalScrollPolicy="off" verticalAlign="middle" horizontalGap="0" id="books" />
                    <!-- EBooks Library -->
                    <mx:HBox horizontalAlign="left" verticalScrollPolicy="off" horizontalScrollPolicy="off" verticalAlign="middle" horizontalGap="0" id="ebooks" />
                    <!-- Recordings Library -->
                    <mx:HBox horizontalAlign="left" verticalScrollPolicy="off" horizontalScrollPolicy="off" verticalAlign="middle" horizontalGap="0" id="recordings" />
                    <!-- Readings Library -->
                    <mx:HBox horizontalAlign="left" verticalScrollPolicy="off" horizontalScrollPolicy="off" verticalAlign="middle" horizontalGap="0" id="readings" />
                </mx:ViewStack>
            </mx:Canvas>

    Hi thanks for your reply. As the hbox gets populated i need it to resize itself. Once each hbox has been populated with the images I attach a function to the viewstack which allows me to scroll the hbox with mouse position - so it scrolls horizontally depending on where the mouse is in relation to the viewstack. So as you can see I need by this point for each hbox to have resized in order to correctly calculate my scrolling function.  The bizarre thing is the selected Index hbox displays all the images but the rest of the hboxes takes on the same width as this one and this is a problem because some of my other hbox contains more images.  As a test I set the selected Index of the viewStack to be the third Hbox, then I restarted the application and now all the hbox takes on the wdith of this one.   I am creating a library of thumbnails which is dynamically driven. It's not possible for me to predetermine the width of each. Do you have any suggestions for this?

  • Hbox right to left positiong

    Does anyone know how to position the children in a HBox from
    right to left (as you add children now they get positioned starting
    on the left to the right) ?
    P.S.: No, I cant just add children in to the hbox in reverse
    order as that would cause the display z-order to be wrong.

    No sorry thats not what I'm searchign for, this just aligns
    the components to the right (I need reverse order asweel). I guess
    the easiest way is to extend the HBox class and override the
    updateDisplayList method :
    protected override function
    updateDisplayList(unscaledWidth:Number,
    unscaledHeight:Number):void{
    super.updateDisplayList(unscaledWidth,unscaledHeight);
    for(var i:int=0;i<numChildren;i++){
    var uiComponent:UIComponent = getChildAt(i) as UIComponent;
    uiComponent.x = this.width - uiComponent.x -
    uiComponent.width;
    But I think the HBox container should have this already
    implemented and a property to be set.

  • Open Sales Orders Backlog Report

    Hi All: I have been asked to create Backlog reports for Open Sales Orders and the revenue amounts for the next 15days, one month, 2 months, 3 months 6 months etc etc. Does anyone know of a standard report that covers that and the business content and cues that go with it?
    Thanks in advance
    Bobby

    I haven't seen any standard content for it, with my client, we actually developed the open order report from Item extractor and status extractor. And compare the created on date to the system data to see how long it has been opened for and put it in different buckets.
    Hopes that help.
    thanks.
    Wond.

  • Open sale order aging report

    Need a report on open order aging.  The open order means not delivered or partially delivered. Further with days range since its open or not fully delievered i.e. > 15 days or 15-30 days and so on.
    The standard transactions Va05 and VL10c can provide the list but dont provide any aging info.
    Kindly help in this.
    thanks
    anu

    Dear Anu
    1. First in VA05 you can use Variants and get the report as desired by you,create one variant and use Filter along with greater then, less then (all are in selection option icon)
    This way you can create three variants.
    But limitation is dates has to be manually changed in variants each time.
    2. Try this Tcodes
    S_ALR_87014387 Display Document Flow
    S_ALR_87014392 Display Document Flow
    This reports will give you document flow run report with ticking checkbox for sales order,delivery and goods isse then after getting the list expand all (Shift+F12)
    you will get the quantities for sales order, and what is delivered and what is issued.
    3. As such if you want exactly the report you can take help of ABAP to create the ALV
    4. Report or create Queries in SQVI , or else create MCSI report
    Regards
    Jitesh

  • Necessary Fields For Creation of Service PO of Order Type Relaese Order.

    Dear Guru,
    I have encountered an issue which i am trying to resolve...
    My this requirment will seem little okward the way i am asking but i have no way...
    The issue is I have to create a Service PO of Order type Release order (RO) using BAPI Function Module .BAPI_PO_CREATE1.
    The service PO should be of multiple Item and services for particular line item should be multiple.
    When I am creating this using ME21 or ME21N i am facing no issue.
    But when i am using BAPI Function Module .BAPI_PO_CREATE1
    i am getting following errors ;; The error which i am getting as below                                                                               
    T ID                   NUM MESSAGE                                                                               
    E BAPI                001 No instance of object type PurchaseOrder has been created. External reference:
    E MEPO              000 Purchase order still contains faulty items                                    
    E SE                   029 Please maintain services or limits                                            
    E SE                   140 Service HIRING OF LCD: please specify unit of measure
    But I am failing to findout in which field services  or limits and unit of measurement have to maintain.
    What are the necessary fields have to pass in Bapi import parameter and the table i am unable to findout.
    Please show some way how to resolve this or give me some guideline to resolve this
    Dear Moderator request your kind intervane to move this qurry into correct forum if i have asked this in wrong forum
    Thanks and regards
    saifur rahaman

    Hi Saifur
    Can you please elaborate how did you resolve the issue we are also facing same problem when we are trying to create the PO for service items through SRM it is throwing same error while creating the PO in SAP.
    Email Id : [email protected]
    Thank you in advance!!
    Regards
    Deepika

  • How to restrict manual changing of free goods in sales order

    Hi ,
    Goodmorning ,
    We have some requirement : In sales order free goods quantity determination by system  should not be allowed to change manually , where can we do this ?
    Looking for your inputs
    Thanks and regards
    Venkat

    As per SAP Standard, when the main Item quantity is changed, the Free Goods are redetermined. In this case any manual changes to Free Goods Quantities are lost.
    But your requirement is for restricting the Chages of the Quantity of Free Goods Correct?
    I believe there is no SAP standard solution for this. You will have to apply a User Exit, which will check the Item category of each LIne item & if it is free goods (TANN) then changes are not permitted.
    Hope this helps.
    Thanks,
    Jignesh Mehta

  • Query help needed for Sales order panel user field query.

    I have a user defined form field on sales order row level called = U_DEPFEEAMT
    1, I would like this field to get the value from a field on this sales order row level multiplied by what is in point 2 below. The details of field in point 1 is :
    Form=139, item=38, pane=1, column=10002117, and row=1
    2. The contents in field 1 should be multiplied  by a value coming from another user field linked to OITM master item.
    The details of user field attached to OITM is :
    OITM.U_DepositFeeON
    Appreciate your help.
    Thank you.

    Try this one:
    SELECT T0.U_DepositFeeON*$[$38.10002117.number\]
    FROM dbo.OITM T0
    WHERE T0.ItemCode = $[$38.1.0\]
    Thanks,
    Gordon

  • Order Of Null and Not Null Values while table creation

    We have to create a table with 10 fields .5 of them are Null and Not Null. Now my question what should be the order of fileds??.Means Null Fields will come first or Not Null.

    The only reason I can think of having the NULL columns at the end is storage space.
    To conserve space, a null in a column only stores the column length (zero). Oracle
    does not store data for the null column. Also, for trailing null columns, Oracle does
    not even store the column length.

  • Fields not in Order ..?

    When I display data on the DSO or Cube  the fields are not in order as compared to once in extract checker - datasource.
    Why so?
    On what does the sequence depend?
    It makes Reconcilation really tough.

    I guess... Sequence of the Fields in DSo Contents display will depends on the Sequece of DSO Creation(IO Sequece while creating DSO).
    Nagesh Ganisetti.
    assign points it helps.

  • New Infinity Order - As it happens !!!

    I've just ordered Infinity (today) and I thought I'd track the order etc here for others to see 'live' what to expect:
    As a precursor, I've had BT ADSL for many years, and no end of problems with the Indian call centre, but great experience from the users and mods on this site - the mods are the reason I'm staying with BT instead of switching to TalkTalk...
    In Autumn last year my Infinity availability showed as available from end of Jan 2013 (and confirmed by email from Openreach), but in Winter this changed to an earliest date of End of March 2013 - not a problem, just have to wait. This weekend this changed to now available to order, so today I did just that.
    My current set-up is adsl2+ unlimited, with minimal phone + BTVision unlimited. I wanted Infinity 2, + minimal phone + BTVision with Youview box. I have 5 months to run on current contract.
    04/02/2013 - Called BT to upgrade. Approx 5 minutes on hold, but ok - everyone gets busy. Spoke to John who seemed very knowledgeable about his products and also very helpful. I was put on hold a couple of times for a couple of minutes, but eventually we agreed the following package, with prices as advertised:
    New contract:
    Phone - 12 months, prepaid so save £56.40.
    Broadband: Infinity 2 unlimited (including non-throttled P2P), estimate 59Mbps down / 20Mbps up.
    TV: TV Unlimited as we had before, but with new Youview box - free, but with £49 activation fee. (Not sure what he activation fee is for as I'm already on BTVision - advice happily received if this can be waived, but not a deal breaker if I have to pay it).
    Installation date agreed as pm (1pm to 6pm) on wed 20/02/2013.
    John could not confirm if my old BTV box and Youview box would work together, but confirmed that BT want to aim for multi-room so suspected that at some time this would stop working if it even started.
    John also confirmed that my new youview box should work fine with powerline adaptors in the same way as my current BTV box.
    First problem was that John can order everything except the Youview box - there is apparently a problem doing this for existing customers - John confirmed he'll call back within 1 or 2 days with the Youview order added on. I confirmed to him that this is necessary for me to complete my order - I won't accept the Infinity package with a 12 month contract then have to pay for a youview box.
    Cancellation terms stated as:
    I can cancel the broadband/TV service up to 17th Feb.
    7 days to cancel the prepaid phone line. After this I'm tied into the BT line for 12 months which implicitly means I can't change broadband suppliers because they normally require you take their phone line rental. This is the critical path, so if my free youview box doesn't appear on my order page before this then I need to cancel everything and then re-order the complete set.
    I'll let you know when/if John calls back and what the update is on the youview box and also the install date.
    Cheers,
    Alan.

    20/02/2013 - Sixth undate.
    Hopefully the last update. I was given the 1pm to 6pm slot and the Openreach engineer (Dave) called at approx 2pm, explained what he needed to do at the cabinet and that he'd be with me in 30 mins.
    Dave was the same engineer who fixed my line in October and also fitted the new faceplate ready for infinity at that time. He tested the line speed and then connected the new modem to my hub - and viola, 75.1/14.9 connection (wired test) against an estimated 59/19.
    I expect this to fluctuate as the line settles and also it may go down quite a bit but I'm extremely happy with this result.
    Anyone else in the PO15 postcode, cabinet 18 - I was no.2 Infinity connection so there's plenty of space left for now.
    So for everyone who is having problems - good things can happen using the advice on this forum. A few months ago I was so hacked off with BT I was going to leave. Now turned round to an extremely happy customer after a few months of good ADSL, flawless BTV (now Youview too) and an upgrade to Infinity with a new contract. All it took was a bit of patience to get my line fixed and get rid of all the noise.
    Cheers,
    Alan.

  • Payment by letter of Credit against Purchase order

    When we are purchasing from Foreign Vendors , we need to open a Letter
    of credit (LC) .
    Depending on the terms of Purchase order , Vendor will discount it /get
    payment from Bank on submitting LC and other necessary documents.
    Vendor's Bank, at appropriate Time will send the same to Customer's Bank
    How to mapped this scenario in SAP-MM and FI .
    Activities required to be updated against Purchase order :
    (1) Payment Terms : 100 % against LC on delivery
    (2) History should reflect LC opened - Date and Bank Name which
    Vendor has suggested, our company's Bank Name
    (3) LC discounted details
    (4) LC payment due date to our company Bank - as Procurement needs
    to inform to Finance for this.
    Any help will be highly appreciated.
    Thanks and Best Regards,

    When we are purchasing from Foreign Vendors , we need to open a Letter
    of credit (LC) .
    Depending on the terms of Purchase order , Vendor will discount it /get
    payment from Bank on submitting LC and other necessary documents.
    Vendor's Bank, at appropriate Time will send the same to Customer's Bank
    How to mapped this scenario in SAP-MM and FI .
    Activities required to be updated against Purchase order :
    (1) Payment Terms : 100 % against LC on delivery
    (2) History should reflect LC opened - Date and Bank Name which
    Vendor has suggested, our company's Bank Name
    (3) LC discounted details
    (4) LC payment due date to our company Bank - as Procurement needs
    to inform to Finance for this.
    Any help will be highly appreciated.
    Thanks and Best Regards,

Maybe you are looking for

  • Sap script Form 16 A -

    We are doing a upgrade from 4.6 c to ECC6 . I need to display a acknowledgement number in form no 16 A. How can i do this.Could anyone help me in this regard. Form name: J_1IEWT_CERT

  • Re: Invalid user ID/Password with OVI Sync

    I have same problem on my 5800xm. When I try to sync to OVI server from phone with WIFI. Can anyone help me? Message Edited by spark11 on 22-May-2009 01:04 PM

  • WAN port without DHCP/NAT on WRTP54G

    (Sorry if this issue was already discussed - I couldn't find it using Advanced Search) I find that my new WRTP54G works fine, supporting VoIP and several PC clients via its LAN switch, providing I enable its DHCP and NAT function. This is with the DS

  • BufferedReader Input "echo" from Printwriter socket output

    Hi to everybody. I built a simple client - server socket-based application. When i use connect two java sockets everything works fine (i can chat normally). When i try to connect to a windows Hyperterminal (or command line Telnet) the communications

  • How to get skin in each page in adobe robohelp 8 in each page

    If i right click and open a new page from the generated output  in adobe robohelp 8 the skin is not there. Do we have any setting in it so that if can have skin in each page if i right click and open. Please sugges me what i can do here?