Set Panel Splitter Position at runtime

Hi All,
Jdev version is 11.1.1.6.0
My use case is that I have a panel splitter in which the first facet has a table and the second facet has some fields. By default, I've set the collapsed property of the panel splitter to be true.
What I want to achieve is the moment the user clicks on a row in the table, the splitter should come to its position (the position set in the property of panel splitter) and the second facet should be visible.
Here's a code from my backing bean which gets executed when I select a row :
    public void woFinishedTableSelectionListener(SelectionEvent selectionEvent) {
        ADFUtil.invokeEL("#{bindings.jobWorkFinishedView1.collectionModel.makeCurrent}",
                         new Class[] { SelectionEvent.class },
                         new Object[] { selectionEvent });
        System.out.println("Selection Listener Executed : Check 1");
        tablePanelSplitter.setCollapsed(false);
        tablePanelSplitter.setSplitterPosition(520);
       // tablePanelSplitter.setSe
        System.out.println("Selection Listener Executed : Check 2");
        AdfFacesContext.getCurrentInstance().addPartialTarget(tablePanelSplitter);
        System.out.println("Selection Listener Executed : Check 3");
    }But the above code doesn't seems to be working, the splitter remains in collapsed position.
Would like to know if I am missing out something or if there is any other way of doing it.
Thanks,
Ankit

and I would like it to move to x,y, and z coordinates that are constantly changedYou need to implement a Behavior and attach it to a Node that is a parent to the objects you want to animate. The Behavior framework is really easy to implement and for your implementation you might like to try a WakeupCriterion Object, ie WakeupOnElapsedFrames(0), and keep track of the position in a Transform.
The Behavior leaf node provides a framework for adding user-defined actions into the scene graph. Behavior is an abstract class that defines two methods that must be overridden by a subclass: An initialization method, called once when the behavior becomes "live," and a processStimulus method called whenever appropriate by the Java 3D behavior scheduler. The Behavior node also contains an enable flag, a scheduling region, a scheduling interval, and a wakeup condition.
See the javadoc for javax.media.j3d.Behavior. You might like to look at Alpha as well.
Hope that helps you out.
regards

Similar Messages

  • Panel Splitter width

    Hi ,
    i can set panel splitter width of an application from skin using
    af|panelSplitter
    -tr-divider-size: 0;
    is it possible to define splitter width for differ panel splitter
    i tried with style class
    like
    af|panelSplitter.splitter1  af|panelSplitter
    -tr-divider-size: 2;
    af|panelSplitter.splitter2  af|panelSplitter
    -tr-divider-size: 0;
    its not woking
    pls advice
    Regards
    Jeethi

    Hi,
    from the skinning documentation:
    "Styles the dom element of the divider in the horizontal panelSplitter. Skinning the padding, border and width styles is not supported. Skinning the padding and border styles may cause the user interface elements to layout incorrectly. *Skinning the width style will have no effect*."
    Frank

  • ADF Panel Splitter collapse and restore icon issue

    Hi ,
    I am working on J developer 11.1.1.7.0
    My requirement is to have a horizontal panel splitter which is not be visible, but collapse and restore icons of the splitter is visible on left corner of our page.
    To achieve  this  we displaced collapse and restore icon to left side from splitter by the following code
    af|panelSplitter::horizontal-icon-style{background: none ;position:absolute;top:-5px; left:-1px;}
    Then set the width of panel splitter to 0px via this code
    .af_panelSplitter_horizontal-divider{
        width :0px !important;
    But the problem is when we click on collapse icon, the restore icon is not appearing. Further more, when we increase the size of the splitter to say 7px then the restore icon is visible.
    How to achieve this requirement?
    Any help is appreciated.
    Thanks

    Seems like you don't really need a splitter component.
    You just need two buttons that toggle the attribute that control the displaying of a part of your screen.
    For example surround the content with panelGroupLayout and set the visible property to be true or false depending on which button you press.

  • Fit Control to Pane + Splitter Position

    Hello,
    Using Splitters makes the UI much more attractive especially when a part of a FP. can be hidden by button. I'm talking about the splitter position property / or window bounds. I like this feature but somehow I am in a little trouble with the following:
    First of all I place some splitters and place a control to the pane ( for example a listbox ) and set the control to " Fit control to pane". When I set this method, I can not set the position the splitter out of the window bound. More precisely, an error occurred when I set this value too low.
    Consequently, a small part of the pane is always visible and can not be hidden. I've attached some pictures please take a look at.
    So, when I want to hide a panel I have to set the panel content to NOT fit control to pane, it could be OK when my FP is NOT resizable but in most cases the window is resizable, so the listbox does not grow automatically.
    Any ideas?
    Thanks in advance,
    +++ In God we believe, in Trance we Trust +++
    [Hungary]
    Attachments:
    Question.png ‏43 KB

    Dear Ion Rosca,
    Please take a look at the attached VI. See instructions on the VI FP.
    Thanks,
    +++ In God we believe, in Trance we Trust +++
    [Hungary]
    Attachments:
    TestVI.vi ‏7 KB

  • Stretching the region dynamically in a facet of panel splitter.

    Hi,
    Jdev version- 11.1.1.6.0
    We are using a panel splitter in a jspx page and inside on of the facet of the panel splitter we are using a taskflow with page fragments as a region.The use case is as user can stretch the panel splitter,we want to stretch the page along with the splitter.
    Here is the component structure.
    Panel splitter which is used in the jspx page.
      <af:panelSplitter orientation="horizontal" splitterPosition="195"
                                positionedFromEnd="true" id="ps2"
                                firstLandmark="main" secondLandmark="contentinfo"
                                collapsed="true" dimensionsFrom="auto">
      <f:facet name="second">
    <af:region/>
    </f:facet>
    </af:panelSplitter>
    And the TaskFlow(Region inside the panel splitter given above)  with jsff page as below.
    <af:decorativeBox id="db1">
        <f:facet name="center">
         <panelGroupLayout  layout="default">
           <af:outputText/>
           <af:panelStretchLayout styleClass="AFStretchWidth">
    <f:facet name="top">
             <af:panelGroupLayout layout="horizontal">
                <af:selectOneChoice>
               </af:selectOneChoice>
               </af:panelGroupLayout>
    <f:facet name="center">
            <af:panelGroupLayout id="pgl287" layout="scroll">
                    <af:inputText
                                        rows="2" columns="40"
                                        dimensionsFrom="auto"
                                        styleClass="AFStretchWidth"/>//This input text we want to stretch dynamically with the panel stretch layout.
           </af:panelGroupLayout>
    </f:facet>
            </af:panelStretchLayout>
         </af:panelGroupLayout>
        </f:facet>
    </af:decorativeBox>

    Hi Timo,
    We have changed the script given by you as below for our requirement.
    function setSplitterPos(event) {
                var source = event.getSource();
                var pos = source.getSplitterPosition();
                if (pos &gt; 460)
                    source.setSplitterPosition(460);
                else
                    source.setSplitterPosition(pos);
                if (pos &lt; 200)
                    source.setSplitterPosition(200);
                else
                    source.setSplitterPosition(pos);
    we are calling the above script when we collapse/stretch the panel splitter as below.
    <af:panelSplitter
    orientation="horizontal"    splitterPosition="460"
                                          positionedFromEnd="true" >
    <af:clientListener method="setSplitterPos"
                                             type="propertyChange"/>
    </af:panelSplitter>
    We are defining the maximum and minimum positions of the panel splitter.But when I stretch the panel splitter  to the max level the script is taking too much time to load and some times its getting stuck.

  • Panel Splitter ICON Posistion

    In adf - Panel splitter, how to position the splitter icon to center, Bottom or Top. What is attribute to be changed in order to get the desired result.

    You can achieve your use-case by skinning
    Add the following to the skinning file:
    af|panelSplitter::horizontal-icon-container {
        vertical-align: top;
        padding-top: 10px;
        padding-bottom: 0px;
    af|panelSplitter::vertical-icon-container {
        text-align: left;
        padding-left: 10px;
        padding-right: 0px;
    }Thanks,
    Navaneeth

  • Panel splitter

    Hi,
    I have a panel Splitter in my page and I want the user couldn't change the size of first facet at run time ,but I don't know how I could disable resizing in panel splitter?
    thanks in advanced

    Hi,
    I couldn't find this behaviour setting directly in panel splitter component. you are requesting for the combination of disabled="true" and possibility to change collapsed="true"/"false". you can place some button or toolbarButton or commandLink and set partial submit
    with action that will change collapsed="true"/"false" but it is just workaround.
    regards,
    Branislav

  • Can i moved any column position at runtime, like ORACLE APPLICATIONs.

    Can i moved any column position at runtime, like ORACLE APPLICATIONs.
    ( move left - right ..... )
    Thank you

    Najeeb ur Rehman
    Thank you very much

  • Set the exact position of a text or variable

    Dear All !
    How can I set the exact position of a text (absolute) in SAPScript
    like "write" command's positional possibility.
    e.g
    WRITE: /3 'Name', 15 , 30 'RoomNo', 45 'Age'.
    Regards
    Ilhan

    Hi,
    WRITE: /3  'Name', 15 'XXX' , 30  'RoomNo', 45  'Age'.
    This will work.......
    Check out........
    Regards,
    Priyanka.

  • How i can set size of editor at runtime?

    dear all,
    How i can set size of editor at runtime?
    The size of editor is good when I run form on windowX but so small on web . why? have any body call tell me how i can do?
    thank for advance

    Hi there,
    You can use the builtin EDIT_TEXTITEM.
    You can pass x-pos, y-pos, width and height as parameters to that.
    Hope this helps

  • How can i render one facet in panel splitter based on conditions?

    Jdeveloper Version - 11.1.1.5
    How can i render one facet in panel splitter based on conditions?
    Ex : In horizontal Panel splitter first facet - af table
    second facet - af table
    if any one table estimated row count is zero i nedd to render the respective facet?
    is it possible?
    Please help..
    Thanks
    sk

    Yes you can do it but not on facet you can apply rendered attribute to the any of the child component of the facet.
    Thanks
    Raghav

  • How to set the X-position and Y-position

    I started an application but was struck due to a problem.
    The problem was : I was unable to set the X-position and Y-position in the desired place... Any one who can help please help me to continue my application......
    I wanted to set my choice group elements in the center of the screen.. help me plz....

    You want to change to x/y position of what? The main frame?
    If it is the Frame class take a look into the CDC/PP specification:
    "An implementation may prohibit resizing of Frames by a user. In such a case, attempts to make any Frame resizable will fail silently"

  • Market requires versionCode to be set to a positive 32-bit integer in AndroidManifest.xml

    I have built an application on flash builder Buritto  using the tutorial of " Christophe Coenraets"  building an EmployeeDirectory  and everything worked fine while debugging it in virtual environment but when I try to upload it to the andoid market im getting the  following error  : and everything worked fine while debugging it in virtual environment but when I try to upload it to the andoid market im getting the  following error  :
    Market requires versionCode to be set to a positive 32-bit integer in AndroidManifest.xml
    how can I solve this issue
    help please !!!!!!!

    Where can I find my  manifest file ? so that I can change the value ?

  • Setting the selectOneChoice value at runtime

    Hi,
    I need to set the selectOneChoice value at runtime. On Page Load I am creating object of RichSelectOneChoice and currencyCode.setValue("USD");
    When I check on runtime it is not showing "USD" as selected item in dropdown where as in background it is sending USD to downstream application.
    How to get the show the value in SelectOneChoice which is selected at runtime in code?
    Thanks in advance.

    Hi,
    Selected value will be taken from the value property of selectOneChoice component, I guess you don't have specified value property. Create a String instance variable in bean and then set the value 'USD' to this variable and then bind it to value property of selectOneChoice component.
    Sample:
    //inside bean
    private String selectedValue;
    //Getter and Setter methods
    //Replace the currencyCode.setValue("USD"); line with the below code
    this.selectedValue = "USD"
    //Finally in jspx page bind this selectedValue to value property of bean
    <af:selectOneChoice value="#{bean.selectedValue}" ... />Sireesha

  • Set MODAL Windows property at runtime?

    Is it possible to do it ? Set MODAL Windows property at runtime?
    In some cases I need that a form must be open in modal mode.
    Br
    Joao Oliveira

    What about setting the windows style dialog/document at runtime?
    Anyone?
    Joao

Maybe you are looking for

  • Filesystem read only[Solved]

    hello i install arch but when i want to install a software i can't. there is an error "file system read only" what should i do? Last edited by MHALAH152 (2013-05-12 06:31:48)

  • Audio Freezes 5 seconds in I-Tunes 7.0.1.8 windows

    When playing audio from I-Tunes, my CPU maxes, and the audio mutes, (continues to 'play, just not out to the audio device). If I pause, Unpause, it will replay, BUT this is not always possible as CPU cycles get pegged. Can usually reproduce during 'm

  • Output before po release

    Dear experts:                              Our PO execute the Release function of std SAP,but now we can't output for print before release.                      On the other hand,after the po has been released and outputed,we can't cancel it also...

  • Reg:http adapter-sender side

    which http client tool is used to send the request if we are using http adapter on sender side?

  • Service order - System status

    Dear All Here is my business process Create Service order Confirmation Technical complete Create service billing request(Debit memo) Create Invoice After completion of all above process I display DOCUMENT FLOW for service billing request & invoice it