AF:panelStretchLayout scrollbar problem

Using Jdeveloper 12.2.1.0

I jspx simple page with af:panelStretchLayout under af:form.

AF:panelStretchLayout has content in top and Center the facet.

a outputtext and Center facet upper facet has af:table.

PanelStretchLayoutScrollBar.png

Scroll bar appears on page [see annex screenshot].

We plan to spend 11.1.1.7.0 a 12.2.1. Because this question, all pages in the adf do additional scroll bar appearing, and it is not easy to use

Is there any property on af:panelStretchLayout in 12.2.1 to get rid of this?

JSPX Page code is as below:

--------------------------------------

<? XML version = "1.0" encoding = "UTF - 8"? >

" < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1"xmlns:f =" " http://Java.Sun.com/JSF/core "

' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "> "

< jsp:directive.page contentType = text/html"; Charset = UTF - 8 "/ >

< f: view >

< af:document title = 'Test' id = 'd1' >

< af:messages id = "m1" / >

< af:form id = "f1" >

< af:panelStretchLayout id = "PSL1" >

< f: facet = 'Start' name / >

< f: facet = 'end' name / >

< f: facet = 'top' name >

< af:outputFormatted value = "sample Text" id = "1" / >

< / f: facet >

< f: facet = 'bottom' name / >

< f: facet name = "center" >

< af:table value = "#{bindings." Var SuppliersVO1.collectionModel}"="row ".

lines = ' #{bindings. " SuppliersVO1.rangeSize}.

emptyText = "#{bindings." SuppliersVO1.viewable? "{'No data to display.': 'Access Denied.'}".

rowBandingInterval = '0 '.

selectedRowKeys = ' #{bindings. " SuppliersVO1.collectionModel.selectedRow}.

selectionListener = "#{bindings." SuppliersVO1.collectionModel.makeCurrent}.

"single' = rowSelection fetchSize =" #{bindings. " SuppliersVO1.rangeSize}"id ="t1">

< af:column headerText = "#{bindings." SuppliersVO1.hints.SupplierName.label}"id ="c2">

< af:outputText value = "#{rank." SupplierName}.

shortDesc = "#{bindings." SuppliersVO1.hints.SupplierName.tooltip}.

ID = "ot2" / >

< / af:column >

< / af:table >

< / f: facet >

< / af:panelStretchLayout >

< / af:form >

< / af:document >

< / f: view >

< / jsp:root >

Hello

Try to change the property dimentionFrom of the stretch of the Parent Panel or child provision and give it a try.

Aman J

Tags: Java

Similar Questions

  • VBox Scrollbar problem

    Hello

    I thought I got my problem fixed from a previous post, but when I started to add other items, I came across a problem. What I'm trying to accomplish is an accordion that dynamically generates child VBox components. My problem was that I needed a scroll bar to appear next to the accordion, but now my problem is that I need the scroll bar to apply specifically to the accordion. I have a button below the accordion that I will not be performed by the scroll bar. See the code below:

    That's what publishes the code above:

    screen1.jpg

    As you can see in this picture the button appears at the bottom of the scroll bar. The following image shows the features that you want that I'm aiming for:

    screen2.jpg

    On this picture you can see I want the scroll bar to apply only for the accordion and not for the button. I tried messing around with the property verticalScrollPolicy on the VBox containing the accordion, but I can't seem to get this to work.

    Any help would be greatly appreciated.

    Thank you

    Brian

    Ah, Yes, that's a good point.  MinHeight = 0 is probably too small.

    Try a simple case with just one or two Vboxes and accordion and the

    button and less other than 100% percent.

    You might be better off wrapping the accordion in its own container

    In theory what container never has minHeight = 0 will push the scroll bars.

  • Problem with window painted and scrollbars when editing (LabVIEW 8.0.1)

    I'm under LabVIEW 8.0.1 in Windows XP SP3.  For my main VI, I came across a strange problem about 5 months ago.  The front window - both in edit mode and run mode - arrested repaint itself on the right side which is no longer visible when you scroll from top to bottom, but also visible overlapping Windows.  Coinciding with the repaint problem, both bars scroll search disabled grey arrows and no boxes in the bars that you can click and drag to scroll the window.  The scroll bars work still partially if you pass the mouse over it and roll the mouse wheel but does not work by clicking and dragging.

    The façade has a lot of controls and indicators, including containers of tab control and is greater in the horizontal directions and vertical so the two scroll bars must be active.  But I deleted everything in the Panel before and everything in the schema and the problem persists.  If the problem is not directly related to a control/led display.

    I saved the simple VI to this problem (using a line of large text and a high box rounded to test), and then created a new VI and copied the two elements at the new VI.  This new VI didn't paint it and the problem of the scroll bar.  The two screws are slightly different in the memory usage and the revision number (bad is review 1785 and the good is revision 3), but otherwise the two screws are identical.  I have attached two screws at this announcement.  When you first open the bad VI, you will see the scroll bars disabled while the good VI has active scroll bars.  To replicate the repaint problem, scroll the window up and down with your mouse wheel.  If it's good when you first open the VI, click on another window, then click on the window of VI and try again the mouse wheel.  This by clicking sur-loin-and-return always causes the problem of repaint for me.  I tried the screw on two different computers, both running Windows XP SP3 and LabVIEW 8.0.1 with identical results.

    Here's what I discovered simple troubleshooting with the screws:

    always off scroll bars

    * repaint the problem in the main window for larger then 680 pixels of window widths

    * repaint the problem in the menu bar of the main window for widths of more than 646 pixels

    * entire window becomes disabled than 1348 pixels window width

    * can paint window minimize and restore, but only repaints only once

    * scrollbar boxes sometimes flicker in the display, but then disappear

    * Scroll left and right hovering mouse over the bar and horizontal scroll by using the mouse wheel

    I found something similar on this forum (thread: problem with refresh of façade)-it could be linked to the CAR on the Panel being offset internally.  I don't have access to LabVIEW 8.5 or later and do not plan to upgrade - I have not tried the trial version, as this user has done.  I could try to copy and paste my set of the block for a new VI diagram but the VI is so important I'm afraid something would break, plus I don't want to do it again in a few months.  The problem seemed to occur after a certain number of stops (or revision number).  I save copies of backup often and when the problem first happened, I was able to go to a previous version, make the missing changes and save it without any problem, but this only delayed the problem and he came later.  It is therefore perhaps the revision number.  It seems not related to a change or a particular addition in the front panel and the graph.

    The attached picture shows the repaint problems and scroll bar in bad VI.

    This raises a question I have - if this problem is a bug has been fixed in 8.5 and later, is it possible to apply bug fixes for older versions?  Or what I need to pay for an update fix these bugs?

    Seems that something got corrupted with this VI. Things to copy on a cool VI and things should be OK.

    See also this recent report of a similar problem.

  • It's 2010 - we have solved the problem "centered layout vs scrollbars" yet?

    An unfortunate side effect of browser scrollbars being regarded as 'in-line' - in other words, the window is reduced when a scroll bar appears - is only centered layouts 'jump' a few pixels to the left when a page requires a vertical scroll bar.

    Googling the subject have given solutions that all centered around from overflowing the body of 1px height (by adding a margin 1px bottom) to force the presence of a scroll bar at any time.

    Now, this is not such a disaster of a solution if at least the scroll bar is grayed out. Such, the solution of 1px margin actually creates a live real scroll bar that scrolls... 1px. Leaving the Web Designer to watch as he has not done his math correctly.

    This, to me, is an unacceptable solution. So I was wondering if there are other more creative out there.

    HTML {overflow - y: scroll ;}

    This CSS will solve your problems by forcing pages to have a gutter of a scroll bar (if it is a scroll bar).

  • spectrum x 360: ScrollBar and Touchpad heat problems

    Hi everyone, I just got my x 380 13-4110dx spectrum model. After months of research on laptops, I settled on the spectrum, and it had shipped all the way from the United States to Bangladesh here. Needless to say that the questions arises as soon as I turned on the thing, so that's:

    TOUCHPAD:
    This is the big one. I'm used to having the page move down with my fingers while two fingers to scroll, but the direction of travel is reversed by default with coasting trade licence. However, when it is turned off reverse the scrolling and cabotage in the settings of synaptics it seems to work on some applications and not anothers. I tried to reset the onboard computer and reinstall the driver software AND I also tried to install the latest drivers from the synaptics Web site. Nothing works not so far

    HEAT:
    The bottom tends to run very hot even with normal web browsing, so I can not put the thing on my lap for a long time. I have install the fan to operate always from the BIOS, but its still the same. At this temperature, I do not know how long the material is going to hold up

    Sorry for the long post, I really hope you guys can help me understand things

    After a lot of frustration, for the past few weeks my touchpad has been behaving satisfactorily. Here's what I've done, maybe it will help someone else here who has the same problem:

    • Make sure the driver is updated to 192.0.12.107
    • Go to Device Manager, open the properties of the mouse and click on 'Update device driver.
    • In the wizard that opens, click on "Browse my computer for driver software".
    • Then select "Let Me pick from a list of drivers for devices on my computer.
    • In the next window, uncheck "See list of compatible hardware" and search for and select "Synaptics Clickpad SMBus"
    • Install and reboot the computer

    Windows installs the driver Synaptics Touchpad of SMBus by default, which leads to the scrolling issues I was experiencing. The pilot clickpad works much better. I don't know how the two drivers are different, but it worked for me

  • easy question - position of ScrollBar in listbox problem

    Hello once again

    This time, my question is simple...

    is there a way to set the initial position of a vertical scrollbar to a listbox?

    sometimes - if I make more runnings - remain in memory the last position... and if the new listbox is smaller, then the last i see a white listbox and I think that something was wrong in my program


  • using the App: variable scrollbar help and problems

    It is a large amount of code, but please bare with me please.  I would really appreciate the help!

    If I write a financial application where the user enters the initial investment, the compound interest rate period and duration of investment and it calculates the value.  Here is my code: each "screen" that appears on the emulator is its own class:

    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.UiApplication;
    
    public class FinanceApplication extends UiApplication
    {
        //VARIABLES FOR THE INVESTMENT GROWTH
        public double initialInvestment;
        public double interest;
        public int compoundPeriod;
        public int investmentLength;
    
        public static void main(String[] args)
        {
            FinanceApplication firstApplication  = new FinanceApplication();
            firstApplication.enterEventDispatcher();
        }
    
        public FinanceApplication()
        {
            //OPENING SCREEN FOR INVESTMENT GROWTH
            pushScreen(new Screen1());
        }
    
    }
    
    //SCREEN 1 INPUTS *INITIAL INVESTMENT*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen1 extends MainScreen implements FieldChangeListener
    {
    
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
    
            menu.add(_close);
        }
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 1 METHOD
        Screen1()
        {
    
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Homepage ~ Initial Investment", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nThis application acts as a an investment or growth calculator.  The user inputs the amount of money he or she would like to invest originally, input the interest, the compound period, the regular monthly deposit into the investment, and the time her or she will have the investment and this application will calculate how much the investment will be worth.\n\n Please enter initial amount of money you are depositing into the investment.\n$XX.xx", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELDS TESTING!!!!
    
            //INPUT FIELD W/ BORDER
            BasicEditField _input = new BasicEditField();
    
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.DARKGREEN;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _input.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_input);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField pressButton = new ButtonField("NEXT");
            pressButton.setChangeListener(this);
            _fieldManagerButton.add(pressButton);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            // PROBLEM IS HERE, I WANT WHATEVER IS TYPED INTO _input TO BE SET AS THE VARIABLE initialInvestmentFinanceApplication.initialInvestment=_input;
    
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen2());
    
        }
    
    }
    
    //SCREEN 2 INPUTS *INTEREST*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen2 extends MainScreen implements FieldChangeListener
    {
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
            menu.add(_home);
            menu.add(_close);
        }
    
        private MenuItem _home = new MenuItem("Home Page", 110, 10)
        {
                public void run()
                {
                    onHome();
                }
        };
    
        public boolean onHome()
        {
            Dialog.alert("Homepage Selected");
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen1());
            return true;
        }
    
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
    
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 2 METHOD
        Screen2()
        {
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager();
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager();
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager();
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Page Two ~ Interest", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nNow please enter the interest that will be put on this investment", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELD W/ BORDER
            BasicEditField _input = new BasicEditField();
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.DARKGREEN;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _input.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_input);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField pressButton = new ButtonField("NEXT");
            pressButton.setChangeListener(this);
            _fieldManagerButton.add(pressButton);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen3());
        }
    }
    
    //SCREEN 3 INPUTS *COMPOUND PERIOD*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.ObjectChoiceField;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen3 extends MainScreen implements FieldChangeListener
    {
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
            menu.add(_home);
            menu.add(_close);
        }
    
        private MenuItem _home = new MenuItem("Home Page", 110, 10)
        {
                public void run()
                {
                    onHome();
                }
        };
    
        public boolean onHome()
        {
            Dialog.alert("Homepage Selected");
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen1());
            return true;
        }
    
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
    
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 3 METHOD
        Screen3()
        {
    
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager();
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager();
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager();
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Page Three ~ Compound Period", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);;
            LabelField _info = new LabelField("\nNow please enter the compound period.\npress spacebar to go through the choices:", LabelField.USE_ALL_WIDTH);;
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //OBJECT CHOICE FIELD
            String choicestrs[] = {"Weekly", "Bi-Weekly", "Monthly", "Quarterly", "Annually"};
            ObjectChoiceField choice = new ObjectChoiceField("Compound Period: ", choicestrs, 0);
    
            //ADD PAGE, INFO, OBJECT CHOIE TO FIELD
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(choice);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField press2Button = new ButtonField("NEXT");
            press2Button.setChangeListener(this);
            _fieldManagerButton.add(press2Button);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen4());
        }
    }
    
    //SCREEN 4 INPUTS *LENGTH OF INVESTMENT*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen4 extends MainScreen implements FieldChangeListener
    {
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
            menu.add(_home);
            menu.add(_close);
        }
    
        private MenuItem _home = new MenuItem("Home Page", 110, 10)
        {
                public void run()
                {
                    onHome();
                }
        };
    
        public boolean onHome()
        {
            Dialog.alert("Homepage Selected");
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen1());
            return true;
        }
    
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
    
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 4 METHOD
        Screen4()
        {
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager();
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager();
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager();
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Page Four ~ Investment Length", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nNow please enter how long you will have this investment for?\nPlease enter the amount in months:", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELD W/ BORDER
            BasicEditField _input = new BasicEditField();
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.DARKGREEN;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _input.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_input);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField pressButton = new ButtonField("NEXT");
            pressButton.setChangeListener(this);
            _fieldManagerButton.add(pressButton);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new InvestmentWorth());
        }
    }
    
    //INVESTMENT WORTH
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class InvestmentWorth extends MainScreen
    {
    
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
    
            menu.add(_close);
        }
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 1 METHOD
        InvestmentWorth()
        {
    
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Homepage ~ Initial Investment", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nHere is the worth of your investment:\n", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELD W/ BORDER
            LabelField _worth = new LabelField();
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.BLACK;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _worth.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_worth);
    
        }
    
    }
    

    So when I run on the emulator, on Blackbery 8520 SDK emulator, it doesn't let me scroll upwards on the first screen to see the rest of the text, it's like the cursor on the button sticks or editing field base so it wont allow to exceed upwards the button or basic edit field , but I can scroll between them.

    Second problem is trying to address (as defined in the first class) variables to different edit fields so when something is typed in (double), it is placed in the variable to use in the rest of the program.  I want to make sure the basic edit fields only allow "double" number entered, otherwise it displays a message 'incorrect type '.   Please help me with this, or give me some advice.

    I would REALLY appreciate it.

    LabelFields will display several lines later the OS, so maybe this isn't a problem.  However, LabelFields are by default not active, so you can't scroll on them.  RichTextFields are active by default.  So either change your LabelFields for et focusable (style LabelField.FOCUSABLE) pr change to RichTextField, as the previous poster suggested.

    I do not understand your second question, what are the numbers 'double '?

    However, I was watching the styles FILTER_ that you can use to BasicEditField or watch extending TextFilter to check the characters that they are entered.  I suspect TextFilter is the right way to go, but I've never done anything like this.  But having a good overview in this field and classes that extends.

  • Small problem with scrollbars

    Hello

    I've implemented a custom Manager where I paint the scroll arrows myself.  It works fine on the touch non-ecran models, but when I try to scroll on the storm, the scroll bars are being developed faster than the screen is repainted, it looks like a big mess.

    Any ideas on how I can avoid this?

    I have attached a screenshot to illustrate the problem.

    FYI, my solution has worked.

    in the constructor:

    setScrollListener(this);
    

    Add this method in the handler:

    public void scrollChanged(Manager manager, int newHorizontalScroll, int newVerticalScroll) {
        invalidate();
    }
    

    I don't notice any effect on performance.

  • Problem of ScrollBar in the sidebar region Oracle Apex

    Hi all

    I'm developing an application using Oracle Apex 4.2.5.

    Application properties:

    Themes request theme 26 productivity =

    Model = a level with left sidebar tab

    I created menu Tree in the sidebar left.

    I used the code below in the region attribute

    STYLE = "overflow-x: scroll;" overflow - y: scroll; height: 500px; "width: 220px".


    If I develop the tree node overflow - y: scroll works fine, but overflow-x: scrolling does not work.

    My problem is overflow-x: scrolling does not work.

    How to solve this problem?

    Thank you

    Su.GI

    She's.

    I have power to change anything else. You can include height too, if you need, however, is fine.

    (Please check the answer correct or useful, if you think that it helped you)

    Thank you

    Sunil Bhatia

  • ScrollBar in af:panelSplitter problem

    Hi all

    I have a page with af:panelSplitter split into 2 half page (vertical). I put the disable property to true so that u can not move the separator. My second half is a little longer and I was expecting the scroll bar to view the web page, but the bottom of scroll displayed on half lower.

    No idea how to do this?

    thnks

    for the second part, you can use panelGroupLayout with the option to SCROLL available.
    ex:

    xmlns:af = "http://xmlns.oracle.com/adf/faces/rich".
    ID = "pgl1" >




    hope this will solve your problem

  • Problem with ScrollBar

    I created a form several pages, with the first page, which is used to collect data from the user that is used to fill the subsequent secondary forms and print them in the form of documents.  On the first page that is used for data entry, I created a PREVIEW button that initially, I placed at the bottom of the page. The PREVIEW button displays PDF documents that are completed once the data entry is complete.  The problem is that when the PREVIEW button is at the bottom of the page, when I display PDF documents completed, the scroll bar shows first the OVERVIEW documents to halfway to the bottom of the screen and the user must scroll to the top to see the beginning of the document.  After much trial and error, I discovered that the problem is due to the fact that the user must scroll complete data entry page and apparently the scroll position is maintained when I display the first page of the PREVIEW.  I was able to work around the problem by moving the button PREVIEW to the top of the page, but from the ergonomic point of view, it is far from ideal.

    So, the question is... are at - there a way to force the overview pages (basically just unmasking filled subforms) to display from the top of the form when the previous page has been the subject of a scrolling down?

    What happens if you programatically move the cursor from one field to the form th etop before the preview?

    xfa.host.setFocus ("FieldName to set focus in")

  • Custom problem with scrollbar in kifani

    Hi, I have a class that extends kifani. This class displays a JEditorPane inside a get for simple HTML display (I have try it with text, the problem persists).

    The problem is that, so I put a date in the JEditorPane and the scollbars are visible, they are positioned at the end of the 'view '! I try to reproduce the problem with a simple swing application, but it works.

    Any idea?

    PS: I'm using Jinitiator 1.3.1.25

    Here is the code:
    package ch.ceg.ecoles.forms.pjc;
    
    import java.awt.Rectangle;
    
    import javax.swing.JEditorPane;
    import javax.swing.JScrollPane;
    
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    
    public class HtmlFrame extends VBean {
    
         private static final long serialVersionUID = 1L;
         // property to set the content
         public final static ID pSetContent = ID.registerProperty("SETCONTENT");
         // private variables
         private JEditorPane htmlPane;
         private String content;
    
         public HtmlFrame() {
              super();
    
              htmlPane = new JEditorPane("text/text", "Chargement en cours...");
    
              htmlPane.setEditable(false);
              JScrollPane scrollPane = new JScrollPane(htmlPane);
              add(scrollPane);
         }
    
         public boolean setProperty(ID pId, Object pValue) {
    
              if (pId == pSetContent) // set and display the new URL
              {
                   String sValue = (String) pValue;
                   content = sValue;
                   htmlPane.setText(content);
                   
                   htmlPane.scrollRectToVisible(new Rectangle(0,0,1,1));
                   System.out.println("après le scroll");
    
                   return true;
              } else {
                   return super.setProperty(pId, pValue);
              }
         }
    }

    Use:

    htmlPane.setCaretPosition(1);
    

    Instead of

    htmlPane.scrollRectToVisible(new Rectangle(0,0,1,1));
    

    François

  • Problem with scrollbar after update with App Builder 32.4.4.

    Hey,.

    I just created an app update with the new version of the DPS App Builder (32.4.4.). After the update the scroll bar (of the Viewer - no content drop-down) moved to it of original position. (see screenshot)

    Any ideas?

    screenshot-bug.png

    The update went live Saturday. If you do not have automatic updates enabled for your devices, then you should see the update in the App Store Update tab.

  • Problem of customization of ScrollBar in a div tag

    Hello. I tried to the scroll bar in a div and nothing I tried the work of style

    I came across the site http://manos.malihu.gr/jquery-custom-content-scroller/ and tried to change the scroll bar that corresponds to my page. I followed the instructions, and yet there is no change.

    Under my section COMMANDER, I have the codes like this:

    < script src = "JavaScript Source/jquery.mCustomScrollbar.css" > < / script >

    < script src = "JavaScript Source/jquery.mCustomScrollbar.concat.min.js" > < / script >

    "< link rel ="stylesheet"href="/path/to/jquery.mCustomScrollbar.css "/ >

    < /script >

    < script >

    (function ($) {}

    $(window) .load (function () {}

    $("#Content").mCustomScrollbar ({}

    Theme: "dark".

    });

    });

    (}) (jQuery);

    < /script >

    Could you please help point out what I did wrong? You can also visit my page to the Page of the Site Sub - AP . Scrolling is in the middle of the page. I have no understanding much make a website and yet, if you please bear with me.

    Thank you so much.

    Chili

    I'll let the errors for you to understand. To set the scroll bar replace line 125

    with

    http://thaiaupair.ueuo.com/HTML/JavaScript-source/jQuery.mCustomScrollbar.CSS"rel ="stylesheet">

    Who's going to fix it without any doubt.

  • problem of HTML5 animation, scrollbar

    Hello world!

    I need help with something, I made a Web page and insert an animation done in flash, but transformed into a html5, then I put it in some pages as "nosotros" 'comtacto' of the Web page inserts an html tag, when I export to web him disappear the vertical scroll bars, but if I delete the animation, the scroll bar appears...

    I know not how I can fix it Please helpme, here is the page http://hydro04.BusinessCatalyst.com/contacto.html

    Please, I hope you get hellps me,.

    Hello

    I checked the link and I don't see the vertical scroll bar on the page with animation.

    This can happen if inserted html extends the length of the page for which to display in the browser will add a scrolling page when the length is increased.

    You can try content html in the code itself that you insert, then check the size.

    Thank you

    Sanjit

Maybe you are looking for

  • To uninstall previous versions of firefox.

    I currently have Firefox 14.0.1 installed and working properly. According to my Panel, Firefox 5.0, 6.0.1 and 13.0 are always installed or on the programs in the list anyway. How can I get rid of them? I can't seem to locate the folder, it is said th

  • Accounts Hotmail send email to all addresses in the address book when the PC is off.

    Yesterday at about 7.25 GMT my hotmail address has been used to send emails 8, each of them the maximum number of addresses possible for a single e-mail, covering between them all the addresses in my address book. Each of the 8 mails had an attachmen

  • Photographs of sorting

    Can I rearrange phtographs in a folder before their insertion in a WORd document? Is it possible to copy their name with the photogrpahs?

  • Cannot change the administrator account!

    Hello. I need to change my administrator account so I can make changes to my accounts on the internet, but my internet provider told me I'm just a standard user in Windows 8 and I need to change it to the administrator. When I try to change my profil

  • How can I create DVDs from multiple short videos (clips, not)

    I have several short videos (no clips) each with their title Intro and credits and I want to put on 1 DVD.How is that done?