Click on table scrollbar

Hi
i've a problem
i have an event structure with a table
when i click into a cell a dialog box ask me some values and it works properly.
When i've several values into table 2 scrollbars are visible and the click on the scrollbars arrows (and on bars) are treated as event and the dialog box appears again.
How can i separate this two "clicks behaviour" ?
thanks
http://www.sd-studio.it - web design agency

no...the problem isn't how to insert values etc...this works great
the problem is understanding the reason why when i click on the scrollbar to move left or right the event structure execute the code inside the "mouse up" event.
http://www.sd-studio.it - web design agency

Similar Messages

  • Clicking the table header column programmatically

    Hi
    For sorting of the JTable I've used the TableSorter API provided in this site. What I need to do is by clicking on another panel the panel containing the JTable should be displayed sorting the respective column. So what I need to do is click the table header column programmatically. Do you know how can I do that.
    Thanx.

    Take a look at setSortingStatus function in TableSorter.
    If you want ascending sort just call:
    setSortingStatus(columnIndex, 1);This is the code executed when you press table header, it might give you some more insight:public void mouseClicked(MouseEvent e) {
                JTableHeader h = (JTableHeader) e.getSource();
                TableColumnModel columnModel = h.getColumnModel();
                int viewColumn = columnModel.getColumnIndexAtX(e.getX());
                int column = columnModel.getColumn(viewColumn).getModelIndex();
                if (column != -1) {
                    int status = getSortingStatus(column);
                    if (!e.isControlDown()) {
                        cancelSorting();
                    // Cycle the sorting states through {NOT_SORTED, ASCENDING, DESCENDING} or
                    // {NOT_SORTED, DESCENDING, ASCENDING} depending on whether shift is pressed.
                    status = status + (e.isShiftDown() ? -1 : 1);
                    status = (status + 4) % 3 - 1; // signed mod, returning {-1, 0, 1}
                    setSortingStatus(column, status);
            }

  • Clicking on table header throws exception

    I'm using Windows Look and Feel. I made a table and applied the custom renderer to the table header. When I click the table header it throws a NullPointerException relating to the plaf.
    javax.swing.plaf.basic.BasicTableHeaderUI$MouseInputHandler.mouseClicked(Unknown Source)+
    Anybody any Idea. Adding the mouse Listener solves this problem but I dont want to use the listeners just for that reason.

    Take a look here:
    http://www.codeguru.com/java/articles/218.shtml

  • Programatically click the table header?

    hello
    how do you programatically click the table header? i have some panels in a table...there is a button in each one that says "remove" to remove that panel from the table. when i tablemodel.removeRow(thisRow), it sorta does: the row is gone, the overall count is reduced, but it displays wrong until i click on the table header..
    for example..if it lists job 1, 2, 3, 4, and 5. if i delete job #2. 1, 2, 4, 5 are left. when i click on the header it shows: 1, 3, 4, 5 as it should. any query i make to what is there before the header shows the same thing: 1, 2, 4, 5. wierd eh? so i need a way to click on that header programatically. i know its a hack, but i cant figure out why its not deleting the right oen for that little time before the header-click.

    When you say table, I'm assuming you mean JTable since you're using
    a TableModel.
    You might try just encouraging the table to redraw itself as that's
    probably what is happening when you click the header. I've noticed
    that is often required when removing components. Anyways, I'd try
    experimenting with calls to
    repaint() and/or
    validate() or invalidate()
    on the JTable or its parent and see what happens.
    : jay

  • How can I open the "Pane Properties Dialog Box", without right-clicking on the scrollbar of the pane?

    To open the "Pane Properties Dialog Box" the LabVIEW Help suggest following:
    "Right-click in the scrollbar of a pane and select Properties from the shortcut menu to display this dialog box."
    The Problem is that I would like to switch off the scrollbars, which once done, means I can't right-click on the scrollbar anymore !
    There must be a different way to get to this Menu, too ?!

    Typically, you would hide the scrollbars only when running, and in this case there is no problem. I guess you should keep at least one of the scrollbars visible in edit mode.
    Once both scrollbars are hidden, you can restore them using the "VI properties...windows appearance...customize" dialog.
    LabVIEW Champion . Do more with less code and in less time .

  • Problem with panelbox and af:table scrollbar issue and panelstretchlayout

    Hi,
    <af:panelStretchLayout >
    <f:facet name="center">
    <af:panelSplitter orientation="vertical" positionedFromEnd="true" inlineStyle="vertical-align:inherit;">
    <f:facet name="first">
    <af:subform default="false" id="xyz">
    <af:panelBox background="light" text="Advance Search" inlineStyle="color:InactiveCaption;" type="default">
    <af:panelGroupLayout layout="scroll">
    <af:commandButton text="Search" id="advSearch" actionListener="#{ADFStandardsLeftMenu.getAdvancedSearchData}"/>
    <af:spacer width="20"/>
    <af:commandLink text="Search Tips" id="searchtips2" inlineStyle="font-weight:bold;" partialSubmit="true" clientComponent="true">
    <af:showPopupBehavior triggerType="click" align="afterEnd" popupId="advSearchPopupId"/>
    </af:commandLink>
    </af:panelGroupLayout>
    </af:panelBox>
    </af:subform>
    </f:facet>
    <f:facet name="second">
    <af:panelBox background="light" text="Basic Search" inlineStyle="color:InactiveCaption;" type="default">
    <af:spacer height="20"/>
    <af:panelGroupLayout layout="scroll" >
    --- some inputtext command buttion, dropdowns...selectonechoice..are there inside this
    </af:panelGroupLayout>
    </af:panelBox>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelStretchLayout>
    problem:
    (we have 2 panels) of vertical
    when i run this application it is working fine. But when we minimise the browser(half size) or if we add more no of toolbars in browser (important) obviously browser size will decrease,
    that time 1 panel getting decreased second panel is maintaing fixed size, not resizing.
    I tried to give fixed size (percentage) for both panels wt ever the operation does.
    and 2nd issue
    ========
    <af:panelStretchLayout>
    <f:facet name="center">
    <af:panelSplitter orientation="vertical"
    positionedFromEnd="true" >
    <af:panelBox background="light" text="Search For Standards" inlineStyle="color:InactiveCaption;vertical-align:50%;" >
    <af:table value="#{ADFStandardsLeftMenu.mostCommonAgencySelectedList}"
    id="t1" width="100%" var="stdURL"
    emptyText="<html><b><font color='red'><center>No Records Found</center></font></center></b></html>"
    disableColumnReordering="true"
    columnSelection="multiple"
    rowSelection="multiple"
    inlineStyle="text-align:left;"
    verticalGridVisible="true"
    horizontalGridVisible="true">
    <af:column>
    </af:column>
    ---- we have more 8-10 columns
    </af:table>
    </af:panelbox>
    </af:panelsplitter>
    </f:facet>
    </af:panelstretchlayout>
    problem: that time im getting by default horizontal and vertical scrollbar, but if user add toolbars in browser (view->customize)add toolbar no of say 10-15 that time window size decreasing
    so, table size is crossing panelbox size, and bottom scrollbar is not visible (hiding under site bottom layout say site is divided into 4 parts (leftmenu, body(2 panels), right, bottom) (im not using any right layout)
    regards,
    sandeep

    Hi,
    if minimises browser window(half) or by adding more no of toolbars, i given an option as panelgrouplayout layout=scroll.
    it is working fine for 1st panel.
    but 2nd panel scrollbar not coming.
    thanks in adv.
    regards,
    sandeep

  • Table Scrollbar doesn't initially appear.

    I have a jsf page that show an af_table. (inside panel box wich is inside two panel groups,
    The table displays up to 20 records. Currently it retrieves some 23 o 24 records.
    When the application is initially loaded (that table appears in the first screen), the table displays the 20 records but the scroll bar is not displayed. After navigating to another screen and returning to the table page, the scroll bar displays ok. If I reload the first page in the browser, the scroll bar also appears.
    Any idea ?

    The panelbox is only for esthetic purposes.
    Before annexing the page code I have made some changes to isolate the table. Previously the table was inside the panel box but not now.
    The problem continues reproducing but a little different.
    Now, when you executes the page the scroll bar does appear and also the first 20 records (before the scroll bar didn't appear the first time). If you click the scroll bar to the botton, the records scroll up but not till last record. Still some records remain hidden in the bottom of the table. To try to view these records you have to click on the last viewable record and hit the down arrow key several times. You can detect that there are some records hidden under the botton side of the table but they never scroll up.
    If you finally click on button "Nueva" and the return to this page, then everything is ok.
    This is the page code:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="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"/>
      <af:table value="#{bindings.SesionesInformativasAdfView1.collectionModel}"
                var="row" rows="#{bindings.SesionesInformativasAdfView1.rangeSize}"
                emptyText="#{bindings.SesionesInformativasAdfView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                fetchSize="#{bindings.SesionesInformativasAdfView1.rangeSize}"
                rowBandingInterval="1"
                filterModel="#{bindings.SesionesInformativasAdfView1Query.queryDescriptor}"
                queryListener="#{bindings.SesionesInformativasAdfView1Query.processQuery}"
                filterVisible="true" varStatus="vs"
                selectedRowKeys="#{bindings.SesionesInformativasAdfView1.collectionModel.selectedRow}"
                selectionListener="#{bindings.SesionesInformativasAdfView1.collectionModel.makeCurrent}"
                rowSelection="single" inlineStyle="height:475px;"
                binding="#{backingBeanScope.backing_index.t1}" id="t1"
                styleClass="AFStretchWidth" columnStretching="multiple">
        <af:column headerText="Fecha Sesión" id="c3" filterable="true" width="95"
                   sortProperty="FechaSesTrunc" sortable="true">
          <f:facet name="filter">
            <af:group id="g2">
              <af:inputDate value="#{vs.filterCriteria.FechaSesTrunc}" id="id1"
                            autoSubmit="true"/>
            </af:group>
          </f:facet>
          <div align="center">
            <af:outputText value="#{row.FechaSesTrunc}" id="ot4">
              <af:convertDateTime pattern="#{bindings.SesionesInformativasAdfView1.hints.FechaSesTrunc.format}"/>
            </af:outputText>
          </div>
        </af:column>
        <af:column sortProperty="TituloEsp" sortable="true" headerText="Descripción"
                   id="c1" filterFeatures="caseInsensitive" width="70%"
                   filterable="true">
          <af:outputText value="#{row.TituloEsp}" id="ot1"/>
        </af:column>
        <af:column sortProperty="Estado" filterable="true" sortable="true"
                   headerText="Estado" id="c4" width="130">
          <f:facet name="filter">
            <af:selectOneChoice id="soc1" autoSubmit="true"
                                value="#{vs.filterCriteria.Estado}">
              <af:selectItem label="Pendiente publicar" value="Pendiente publicar"
                             id="si3"/>
              <af:selectItem label="Publicada" value="Publicada" id="si1"/>
              <af:selectItem label="Fecha pasada" value="Fecha pasada" id="si2"/>
              <af:selectItem label="" id="si4"/>
            </af:selectOneChoice>
          </f:facet>
          <div align="center">
            <af:outputText value="#{row.Estado}" id="ot3"/>
          </div>
        </af:column>
        <af:column id="c5" headerText="Acciones" align="center" width="60">
          <af:panelGroupLayout id="pgl3">
            <af:commandImageLink id="cil2"
                                 icon="/imagenes/8ebdd271-fd18-4eb0-873b-5f717e4c0879.png"
                                 action="editarDetalle"/>
            <af:commandImageLink disabled="#{!bindings.Delete.enabled}" id="cil1"
                                 icon="/imagenes/6fd2781f-54d1-4a84-b09c-c84f006ba13c.png"
                                 action="#{backingBeanScope.backing_index.borrar_registro}">
              <af:showPopupBehavior popupId="::p1" align="afterEnd" alignId="cil1"/>
            </af:commandImageLink>
          </af:panelGroupLayout>
        </af:column>
      </af:table>
      <af:group id="g3">
        <af:panelGroupLayout id="pgl5" layout="scroll">
          <af:spacer width="10" height="10" id="s2"/>
          <af:panelBox text="Tabla de gestión de Sesiones Informativas" id="pb1">
            <f:facet name="toolbar">
              <af:group id="g1">
                <af:commandImageLink text="Nueva" id="cil3"
                                     icon="http://itemsweb.esade.edu/apps/img/add.png"
                                     action="nuevaSesion"/>
              </af:group>
            </f:facet>
            <af:panelGroupLayout id="pgl1" layout="scroll"/>
          </af:panelBox>
        </af:panelGroupLayout>
        <af:spacer width="10" height="10" id="s1"/>
        <af:popup id="p1">
          <div align="center">
            <af:panelGroupLayout id="pgl6" layout="vertical">
              <af:outputText value="¿ Está seguro que desea eliminar el registro ?"
                             id="ot2"/>
              <af:spacer width="10" height="10" id="s3"/>
              <af:panelGroupLayout id="pgl7" layout="horizontal">
                <div align="center">
                  <af:commandImageLink text="Si" id="cil4"
                                       action="#{backingBeanScope.backing_index.borrar_registro}"/><af:spacer width="10"
                                                                                                              height="10"
                                                                                                              id="s4"/><af:commandImageLink text="No"
                                                                                                                                            id="cil5"/>
                </div>
              </af:panelGroupLayout>
            </af:panelGroupLayout>
          </div>
        </af:popup>
      </af:group>
      <!--oracle-jdev-comment:preferred-managed-bean-name:backing_index-->
    </jsp:root>

  • Action for click in table like in value help design since SP11

    Hi everybody,
    since SP11 with the new value helps (F4) design, you can click everywhere in the table of the search result table, to select and use one hit.
    Now I want to create a table with this behaviour and layout, too.
    Is it possible in a table, normal table or with a ALV, to set an action for a event "clicking in the table"?
    I know Is it possible in use of celleditors like button or link. But than you see the link or a button I dont want to have.
    So maybe someone know how it could be realized.
    Many thanks and
    best regards
    Christian

    Hi Neha,
    thanks for your answer. With setting the type, die text is underlined when the mouse is over the text.
    But in the value helps, the whole cell is activ to click in. So you don't have to click on the text, a click in the cell is enough.
    So the question is, if this functionality only programmed only for the DDIC value helps or can I set a table to this "layout".
    Best regards
    Christian

  • Is there a property to set the position of a table-scrollbar to the begining?

    Hello,
    i have a VI which displays a table and the table gets data from time to time.
    Are there any properties that i can use to set the scrollbar at the right side to the beginning of the table?
    The scrollbar stays always at the last position.
    Thx for your help.

    The property is "Index values"
    Message Edité par chilly charly le 11-08-2007 04:03 PM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Example_BD.png ‏1 KB

  • How get table column value in textfield on mouse click in table column

    hi master
    sir i have one table that have three field
    sno
    name
    fname
    and three textfield in my page
    how i get sno,name,fname in textfield form table when i click any reow or any record
    when i cliek any record that record value sno,name and fname transfer to textfiled1,textfield2 and textfield3
    please give me idea and code
    thank's
    aamir

    Hi Gorge,
    Are you sure the column you are accessing is of  type EditText ?
    Please step through your code and do check the type of the column first.
    While Rows <= index
    Dim o = omatrix.Columns.Item("2000002049").Type     'Check the type here first.
    edit1 = oMatrix.Columns.Item("2000002049").Cells.Item(index).Specific
    index = index + 1
    Regards
    Edy

  • Method for dble-click and table control

    I'm a beginner in object. I build, with screen painter, a table control with x rows and x cols. and give the possibilty to use 'double click'.
    But how to handle this event by a method and importing the number of the row and col where the action of the event has been.
    which class and method can i use. thanks for your help
    Moderator message: sorry, these forums are not a replacement for ABAP training, please search for available information and documentation, there is plenty available.
    Edited by: Thomas Zloch on Dec 7, 2010 4:21 PM

    hi,
    You can do this by estimating  maximum no of records of that internal table used for table control to some number and then assign that number lines field of table control.
    try this.
    Regds
    Sivaparvathi
    Please reward points if helpful...

  • ***How to Invoke backing bean method by DOUBLE-CLICK the table ROW!!***

    Hi,
    How can I collect the selected row value & navigate to next page by DOUBLE-CLICK the result table row.
    My application got searchResult page where I am displaying the list of user in result table. Then selecting any one row and navigating to master details page by clicking the continue button. Button Action method will collect the selected row userID which I am forwarding to the masterDetails page.
    Same functionality I want to do by double click the row instead of clicking the button!!. I want to trigger the backing bean method if the user double click the row basically. Please help me in this how to do this?
    Current button action method:
    *public String userSelected() {*
    FacesCtrlHierNodeBinding binding = (FacesCtrlHierNodeBinding) searchResultTable.getSelectedRowData();
    currentRow = binding.getRow();
    selectedNetID = (String) currentRow.getAttribute("netid");
    System.out.println("selectedNetID -->"+selectedNetID);
    requestContext.getPageFlowScope().put("netid",selectedNetID);
    return "continue";
    *}*

    Puthanampatti ,
    Yes, I am using the same. Below is my code. I am trying to get the object of the MAIN jspx page region (where I am displaying the fragments) and refresh the one. But cant able to get the object for the region it is returning null. without refresh seems the navigation wont work.
    public void doDbClick(ClientEvent clientEvent) {
    FacesCtrlHierNodeBinding binding = (FacesCtrlHierNodeBinding) searchResultTable.getSelectedRowData();
    currentRow = binding.getRow();
    selectedNetID = (String) currentRow.getAttribute("netid");
    System.out.println("selectedNetID -->"+selectedNetID);
    requestContext.getPageFlowScope().put("netid",selectedNetID);
    try{
    FacesContext facesCtx = FacesContext.getCurrentInstance();
    NavigationHandler nh = facesCtx.getApplication().getNavigationHandler();
    nh.handleNavigation(facesCtx, "", "continue");
    System.out.println("region obj -->" +facesCtx.getViewRoot().findComponent("advse1"));
    // Refresh the current region; advse1 is the id of the region component inside jspx page
    AdfFacesContext.getCurrentInstance().addPartialTarget(facesCtx.getViewRoot().findComponent("advse1"));
    catch(Exception e){
    System.out.println("Error is: " +e);
    Is this correct coding to get the region object?? actually the "result table" and "Master details" are 2 different fragments which are linked with task-flow and the task flow is part of main jspx page as a region. I am using that region ID to get the obj, but cant able to get so....!!! any idea

  • Double click in tables

    Hi,
    i would like to get the selected field from a tabel with double clicking on the filed. What kind of action listener, selection listener should i use?
    Thx in advance:
    james

    You can read mouseclicks with the MouseAdapter class. Put it on your JTable like this:
    table.addMouseListener(new MouseAdapter(){
         public void mouseClicked(MouseEvent e){
          if (e.getClickCount() == 2){
             // double clicked
       }Inside the handler you can check the selected row/cell to check what the user doubleclicked on.

  • Disable table scrollbar

    Hi,
    is it possible to disable the right scrollbar of the table view component so it is not visible anymore?
    Best regards,
    Kevin

    Hi Kevin,
    You get the scrollbar in table in HTML version (even if its not reqd.)
    But you dont get the scrollbar (unless reqd.) in the Flex version.
    Did you try running in Flex version?
    Award points if you found it useful
    Regards,
    Vani

  • Navigate to next view activity by double clicking a table row

    Hi,
    I define a simple task flow with two view activilities, View1 ----(showDetail)-----> View2.
    View1 contains a table, when user clicks a row in the table, the task flow should go to View2
    and content displayed in View2 depends on the row selected in View1.
    I define a client listener and server listener to concume the row double click event.
    The server listener is something like this:
    FacesContext fc = FacesContext.getCurrentInstance();
    DashBoard dashBoardBean =
    *(DashBoard)fc.getExternalContext().getSessionMap().get("dashBoardBean");*
    RichRegion contentRegion = dashBoardBean.getTaskf1();
    ExpressionFactory ef = fc.getApplication().getExpressionFactory();
    ELContext elc = fc.getELContext();
    MethodExpression me =
    *ef.createMethodExpression(elc, "#{dashBoardBean.getCurrentScreen}",*
    *String.class, new Class[] { });*
    *contentRegion.queueActionEventInRegion(me, null, null, false, -1, -1,*
    *PhaseId.ANY_PHASE);*
    *contentRegion.refresh(fc);*
    This works fine in the sense that I can navigate to View2.
    The problem is that I register a RegionNavigationListener on the region containing this task flow, when I double click a row in View1
    the RegionNavigationListener is not invoked even though region has navigated from View1 to View2.
    Anyone knows any solution for this or is there an alternative way to implement this functionality?
    Thx
    Colin
    Edited by: user10303309 on May 28, 2009 2:51 AM

    Yes, I think Region.refresh does not fire the Navigation Event, I tried to fire an event manually:
    contentRegion.refresh(fc);
    contentRegion.queueEvent(new RegionNavigationEvent(contentRegion, "oldViewId",  "newViewId"));
    But this does not work either....

Maybe you are looking for