How to set a delay on Autocomplete component?

How to set a delay on Autocomplete component so that the completion method will only be invoked when users stop typing for some time. Otherwise, there are too many unnecessary server requests.

Hi,
You can use shortDesc property. Something like
<af:commandToolbarButton text="Some Button"
      id="ctb1" shortDesc="This button does something.."/>-Arun

Similar Messages

  • How to set input delay and output delay when source Synchronous

    ClkIN is the board clock which is connected to the FPGA. Clkif is the generated clock from ClkIN. The Device's clk come from Clkif. So, how to set input delay and output delay in this scene(within my understand, this is Source Synchronous)?
    The example in many document, the input delay and output delay setting all refer to board clock(within my understand, this is System Synchronous). In that scene, the input delay max = TDelay_max + Tco_max; input delay min = Tdelay_min + Tco_min; the output delay max = Tdelay_max + Tsu; output delay min = Tdelay_min - Th.
    So, I want to know how to set input/output delay in the Source Synchronous.
    In system synchronous, I set input/output delay such as:
    create_clock -period 20.000 -name ClkIN -waveform {0.000 10.000} [get_ports ClkIN]
    create_generated_clock -name Clkif -source [get_pins cfg_if/clk_tmp_reg/C] -divide_by 2 [get_pins cfg_if/clk_tmp_reg/Q]
    create_clock -period 40.000 -name VIRTUAL_clkif //make virtual clock
    set_input_delay -clock [get_clocks VIRTUAL_clkif] -min 0.530 [get_ports DIN]
    set_input_delay -clock [get_clocks VIRTUAL_clkif] -max 7.700 [get_ports DIN]
    set_output_delay -clock [get_clocks VIRTUAL_clkif] -min -0.030 [get_ports DOUT]
    set_output_delay -clock [get_clocks VIRTUAL_clkif] -max 1.800 [get_ports DOUT]
    *******************************************************************************************

    So, first. Architecturally, the clock that you forward to your external device should not come directly from the clock tree, but should be output via an ODDR with its D1 input tied to logic 1 and the D2 tied to logic 0. This guarantees minimal skew between the output data and the forwarded clock.
    ODDR #(
    .DDR_CLK_EDGE("OPPOSITE_EDGE"), // "OPPOSITE_EDGE" or "SAME_EDGE"
    .INIT(1'b0), // Initial value of Q: 1'b0 or 1'b1
    .SRTYPE("SYNC") // Set/Reset type: "SYNC" or "ASYNC"
    ) ODDR_inst (
    .Q (Clkif_ff), // 1-bit DDR output
    .C (ClkIN_BUFG), // 1-bit clock input
    .CE (1'b1), // 1-bit clock enable input
    .D1 (1'b1), // 1-bit data input (positive edge)
    .D2 (1'b0), // 1-bit data input (negative edge)
    .R (rst), // 1-bit reset
    .S (1'b0) // 1-bit set
    OBUF OBUF_inst (.I (Clkif_ff), .O (Clkif_out));
    This generates an output clock that is the same frequency as your input clock. This is consistent with your drawing, but inconsistent with your constraints - is the forwarded clock a 50MHz clock or a 25MHz clock?
    I will assume your ClkIN goes to a BUFG and generates ClkIN_BUFG.  Your first constraint generates a 50MHz clock on the ClkIN port which will propagate through the BUFG to (among other places) this ODDR.
    create_clock -period 20.000 -name ClkIN -waveform {0.000 10.000} [get_ports ClkIN]
    Assuming your forwarded clock is supposed to be 50MHz, then your 2nd command is close to correct
    create_generated_clock -name Clkif -source [get_pins cfg_if/ODDR_inst/C] -combinational  [get_pins cfg_if/ODDR_inst/Q]
    With this done, you have successfully described the forwarded clock from your design. This is the clock that goes to your device, and hence should be the clock which is used to specify your input and output constraints.
    set_input_delay -clock [get_clocks Clkif] -min 0.530 [get_ports DIN]
    set_input_delay -clock [get_clocks Clkif] -max 7.700 [get_ports DIN]
    set_output_delay -clock [get_clocks Clkif] -min -0.030 [get_ports DOUT]
    set_output_delay -clock [get_clocks Clkif] -max 1.800 [get_ports DOUT]
    If you want to get fancier, you could try adding a set_clock_latency to the forwarded clock to account for the board propagation of the clock
    set_clock_latency -source TDtrace2 [get_clocks Clkif]
    (But I haven't experimented with clock latency on a generated clock and I don't know for a fact that it works).
    Avrum

  • How to set focus order of multiple Component in a Frame

    I have created a Frame with contain some Label, Textfield, Choice and Buttons
    How do set focus order on these Components

    write an implementation of
    import java.awt.*;
    public class PanelFocusTraversalPolicy extends FocusTraversalPolicy
        public Component getComponentAfter(Container container, Component component)
            if(component.equals(cmp1))
                return cmp2;
            if(component.equals(cmp2))
                return cmp3;
            return cmp1;
        public Component getComponentBefore(Container container, Component component)
            //implentation of method
        public Component getDefaultComponent(Container container)
          return cmp1;
        public Component getLastComponent(Container container)
            return cmp3;
        public Component getFirstComponent(Container container)
           return cmp1;
        public PanelFocusTraversalPolicy()
    }and set the focus traversal of frame.
    setFocusTraversalPolicy(new PanelFocusTraversalPolicy())

  • Can someone explain how to set the focus to a component

    Hello,
    What is the best way to ensure that a component gets the focus with code. I have tried requestFocus and requestFocusInWindow and none of them seems to do there work. The frame containing the components that should get the focus is displayed, the component is focusable so that is not the problem. What I found out is that if the component is deep in a nesting of panes (where the top pane is in the frame) is that calling requestFocus or requestFocusInWindow does not give the component where this focus is called on the focus but either the pane that contains it, one of the parent panes of this pane or one of the components in these panes, in almost all cases the component requesting the focus does not get the focus at all. I always have to write a work around in defining a focus listener for all these panes that transfer the focus back to the component that requested the focus originally, I can't believe that this is the way to ensure that a component has the focus via code. I have searched for documentation but found nothing on what requestFocus(inWindow) is actually dooing (a lot about focus traversibility but I don't want to control this, just make sure that a component gets the focus).
    Again I'm pretty sure that the toplevel window is activated and that the component that requested the focus is focusable (I had created a derived version of the DefaultFocusManager that showed who has focus). Personally I think (and I'm not alone if you do a search in this forum on focus management) that there is either a big problem in the documentation of focus management or that it is still not possible to even try to set the focus on a component in a easy way.
    Marc

    Hello,
    thanks for your reply, here is some example code that illustrates the problem I have (the actual code is to big to show here, which is the raison why I did not posted it here). The code wil create a frame with a JPanel with a JTextField, a 'New' Jbutton and a 'Delete' Jbutton, a tabbed pane in the center ('New' will create a new JPanel, add it to the tabbed pane and set the focus on it, either by calling RequestFocusInWindow() directly or by calling it via InvokeLater (someone on this forum suggested to use this). I changed also the focusmanager to show the component that has the focus when you type something. To test compile and run the program (either with a call to requesteFocusInWindow directly or indirectly (by changing the comments), on my system I get the following behaviour:
    1. requestFocusInWindow called directly
    Start program en type, the tabbed pane has the focus
    Press New and type something, a button has the focus not the created panel
    Press New again and type something, a button has the focus not the created panel
    2. requestFocusInWindow be called indirectly
    Start program and type, the tabbed pane has the focus
    Press New and type, the created panel has the focus (I thought at one moment that I had found the solution there, but alas ...)
    Press New again and type something, a button has again the focus.
    Note that with my real program it is not always a button that will have the focus, sometimes it is a combobox or a TextField (I tried to get this with the example code (the JTextField) but did not succeed.
    Hopes this clarify the problem a little bid, what I want is when the window is visible to set focus on newly created panes (or in the real program on the panel that is selected via the tabbed pane or via a key combination to shift the focus between the panels) but requestFocusInWindow seems to behave unpredicatable. I can't imagine that what I see is a bug so I must make some assumptions which are not valid but I don't see them, btw listening on the WindowListener is I think not the solution because the frame is already displayed when I want to set the focus and I do not use a modal dialog box.
    The example code follows here
    Marc
    * Main.java
    * Created on December 21, 2004, 8:58 AM
    package testfocus;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    * @author marc
    public class Main
    static int counter;
    /** Creates a new instance of Main */
    public Main()
    * @param args the command line arguments
    public static void main(String[] args)
    JFrame frm=new JFrame();
    JPanel content=new JPanel();
    frm.setContentPane(content);
    final JTabbedPane paneContainer=new JTabbedPane();
    JPanel bar=new JPanel();
    JButton create=new JButton(new AbstractAction("New")
    public void actionPerformed(ActionEvent ev)
    counter++;
    final JPanel pnl=new JPanel();
    pnl.setName("test"+counter);
    paneContainer.add(pnl);
    pnl.setFocusable(true);
    pnl.requestFocusInWindow();
    /* Either use this or the previous line
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    pnl.requestFocusInWindow();
    JButton delete=new JButton(new AbstractAction("Delete")
    public void actionPerformed(ActionEvent ev)
    int i=paneContainer.getComponentCount()-1;
    if (i>=0)
    paneContainer.remove(i);
    JTextField dummy=new JTextField("Test");
    bar.add(dummy);
    bar.add(create);
    bar.add(delete);
    content.setLayout(new BorderLayout());
    content.add(bar,BorderLayout.SOUTH);
    content.add(paneContainer,BorderLayout.CENTER);
    frm.setSize(300,400);
    FocusManager.setCurrentManager(new DefaultFocusManager()
    public void processKeyEvent(Component component,KeyEvent ev)
    System.out.println("Focus owner"+getFocusOwner());
    super.processKeyEvent(component,ev);
    frm.setVisible(true);
    }

  • How to set button INVISIBLE in standard component FITV_POWL_ASSISTANT

    Hi Team,
    My requirement is to set buttons INVISIBLE of standard component. I have enhanced component and view. But i am not able to set the button to invisible. properties of the UI elements are in read only mode.
    Can some one suggest me.
    Thanks & Regards,
    Sankar Gelivi

    Hi Sankar,
    You can do it as below
    Approach1:
         Enhance the view , use, post exit of WDDOMODIFYVIEW( ) and set the visible property of button as below
                   lo_btn->set_visible( cl_wd_button=>e_visible-none ).
    Aproach2:
    Enhance the view
    Go to the button ( ui element tree )  and right click and chose the "Remove Element" as below
    Note: you can undo the element deletion if required
    Approach3:
    use the personalization/customization either by using admin mode or application configuration.
    Hope this helps you.
    Regards,
    Rama

  • How to set up delayed sending with Mail ?

    Since I am not allways internet connected, I would like in Mail to send my mail only when I am connected, or to decide by myself when to send mails.
    How to set up this fonction ?
    Or how to do with Mail when I am not permanently conncetd to internet ?
    Than You

    If you are not connected to the internet when selecting Send for a message, you will receive the following error message.
    Error
    This message could not be delivered and will remain in your Outbox until it can be delivered.
    The server "the account's SMTP server here" cannot be contacted on port 25 (or whatever Server Port is used by the account's SMTP server).
    When connected to the internet and launching Mail, all messages that remain in the Outbox mailbox will be sent automatically.
    No other setting is required but if you select Send for a message when not connected to the internet, you cannot prevent any messages from being sent that remain in the Outbox when connected to the internet and launching Mail.
    If you want to decide when to send messages that were composed when not connected to the internet, save the messages as a Draft. Open the saved Draft message and select Send.

  • How to set focus on a jsf component of portlet based web page ?

    Hi,
    I have a jsf based portlet in a Websphere Portal environment. I have seen the javascript code document.getElementId(form.component).focus for the attribute onLoad in body tag of a page
    But in a portlet page, the body tag is somewhere in the Head page of the portal.
    How do I achieve this in another way? Is there that accesskey attribute for a component help me to set the focus on itself? HOw do I do that? Any help is appreciated
    Thanks

    Don't put it in the body. Put it below in the code, right before the closing body tag.
    Example<f:verbatim>
        <script>
            setFocus('</f:verbatim><h:outputText value="#{myBean.elementIdToFocus}" /><f:verbatim>'); // load on every view
            function setFocus(elementId) {
                var element = document.getElementById(elementId);
                if (element && element.focus) {
                    element.focus();
        </script>
    </f:verbatim>Where MyBean.getElementIdToFocus() returns the UIComponent.getId().

  • How to set a value into a component visibility with expression builder?

    Hello,
    I want to set true/false value into a adf component visibility according to a bean object's value. if the object value is null then visibility value will be false, else visibility is true.
    How can I do that without an extra variable definition in the backing bean?
    Thanks, Ali

    I think, "visibility = false" is a rendered element, which is not display to the user (like a HiddenField). You should find the element in your HTML-code of your browser. A "rendered = false" element should be not rendered into HTML and not to find in the HTML-code.
    Regards
    Majo

  • Web Dynpro - How to set and get info from Component Controller

    Hi Gurus!!!
    Im having some problems getting and setting info in component controller of my Web Dynpro.
    I can't see the difference between View Context and Global Context.
    How can i create a Global Context Between two views?
    Thanks!
    Regards.
    Polakinho.-

    hii
    difference between view context and global context is we can use the same component controller for all the views in the same application.but when when we create node in view context then it will be available for that view only not for any other view...so if we want to use the same node for all the views we need to create that view in the component controller.so it will become global for that application.
    for using global node you need to map that context in view controller.for that you need to go to that view then click on context tab and drag and drop node from component controller.so it will be available for that view.i hope it helps you.
    regards
    twinkal

  • How to set focus on a specific component in an ADFT application

    Hello all,
    We are developing ADFT applications for telnet devices using ITS. Is there any way to set the focus on a specific
    gui component (input text for example) for telnet devices.
    Thanks

    You can use the initialFocusId attribute in the af:document tag. Set this to the id of the component which you want to gain focus.
    It can be a bit tricky if the component is in a table or some other "naming container" because then the actual id for the rendered component is generated (e.g. it may be mytable:0:myinputtext).

  • How to set time delay in javascript for indesign cs2?

    while am running the js, am using function date.getMonth, date.getDate()...
    this function produce the error, which return the function as error message,
    if i set alert before running this every time , am not getting the errror
    how to solve this?
    thanks in advance
    subha

    Dear Subhaoviya
    Please use the below coding and get your date and Time functions
    var today = new Date();
    var myDate = today.getDate();
    Thanks & Regards
    T.R.Harihara SudhaN

  • How to set partial trigger of the component which is in different Page Fragements

    I want to set the partial trigger of a ADF control which is in different page fragment.
    Would you please help me regarding this.

    Hi,
    so fragments on a page are within regions and your requirement is to refresh a component in region A in response to an action on a component in region B. If this is correct, then the choice is
    1. use contextual events
    2. use a managed bean that is injected to region B to notify the parent page (manged bean in view scope) about a component change. Now this parent page can refresh the region B container performing e.g. a PPR or a full refresh
    Frank

  • How to set property(variable) of jsf component in javascripts

    Hi, i have a jsf page which has an outputText component and its value is bound with its backing bean. I want to set its value in a javascripts written in the same jsf page. i'm using the following code: but its not working....can anybody help me out ...
    *document.getElementById('form:clicked').innerHTML   = ' value ' ;* 
    *<h:outputText id="clicked" value="#{bean.outputText property}"*
    *style="display: none"></h:outputText>*

    Hi, i have a jsf page which has an outputText component and its value is bound with its backing bean. I want to set its value in a javascripts written in the same jsf page. i'm using the following code: but its not working....can anybody help me out ...
    *document.getElementById('form:clicked').innerHTML   = ' value ' ;* 
    *<h:outputText id="clicked" value="#{bean.outputText property}"*
    *style="display: none"></h:outputText>*

  • JSplitPane problems : how to set the size of one component to be constant?

    I have a horizontal JSplitPane, the left side of which is occupied by a JTextArea and the right side by a JPanel, which will later contain a JList.
    my problem is:
    when resize I resize the window:
    1. on expanding: the right side of the JSplitPane increases in size ( hence the JPanel increases in size ), while the JTextarea remains the same.
    2. on contracting: the JTextArea keeps becoming smaller and until it nearly vanishes, and then the JPanel starts contracting.
    It does not matter what corner or what size of the JFrame I use to resize it: the result is the same.
    what do i do to reverse the effect but with the following difference:
    On resizing, the following happens:
    1. on expanding: the size of the JPanel remains the same, and the JTextArea keeps getting bigger
    2. on contracting: the size of the JTextArea remains the same, and the JPanel contracts UNTIL IT REACHES A MINIMUM WIDTH. After this width, the JTextArea starts contracting, UNTIL THIS TOO REACHES A MINIMUM SIZE (both height and width). After this limit, no more contraction is possible.
    My code is:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    class MultiEditClient extends JFrame
         public MultiEditClient( String title )
              super(title);
              addComponents();
              addMenu();
         protected void addComponents()
              this.setBounds( 100,100,      500,500 );
              JPanel panel = new JPanel();
              JLabel label = new JLabel( "The to-be status bar." );
              label.setFont( new Font( Font.SANS_SERIF , Font.PLAIN , 14 ) );
              label.setMinimumSize( label.getMaximumSize() );
              JTextArea textarea = new JTextArea();
              textarea.setPreferredSize( new Dimension(400,400) );
              textarea.setMinimumSize( textarea.getMaximumSize() );
              JScrollPane scrollForTextArea = new JScrollPane(textarea);
              JPanel anotherpanel = new JPanel();
              anotherpanel.add( new JButton("Sample Button") );
              JSplitPane splitPane = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT, scrollForTextArea, anotherpanel );
              splitPane.setOneTouchExpandable(true);
              panel.setLayout( new BoxLayout(panel, BoxLayout.PAGE_AXIS ) );
              Box vBox = Box.createVerticalBox();
              Box hBox2 = Box.createHorizontalBox();
              hBox2.add( splitPane );
              vBox.add( hBox2 );
              vBox.add( Box.createVerticalStrut(5) );
              Box hBox = Box.createHorizontalBox();
              hBox.add( Box.createHorizontalStrut(5) );
              hBox.add( label );
              hBox.add( Box.createHorizontalGlue() );
              vBox.add( hBox );
              vBox.add( Box.createVerticalStrut(2) );
              panel.add( vBox );
              add( panel );
         protected void addMenu()
              JMenuBar menubar = new JMenuBar();
              JMenu session = new JMenu( "Session" );
              JMenuItem joinSession = new JMenuItem( "Join Session" );
              session.add( joinSession );
              menubar.add( session );
              this.setJMenuBar( menubar );
         public static void main( String args[] )
              MultiEditClient theFrame = new MultiEditClient( "MultiEdit Client" );
              theFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              theFrame.pack();
              theFrame.setVisible( true );
    }

    okay...
    I have a JFrame, that contains a JSplitPane with the splitter placed vertically so that it has a left side and a right side.
    In the left side a JTextArea is placed. In the right side a JPanel is placed, whic h will also contain a JList later.
    When I resize the frame along the height of the JFrame, the height of both the components (JTextArea and JPanel) increases - quite natural, no problems here.
    But when I resize the frame along the width I see the following behaviour:
    1. on expanding: the JTextArea retains its width, and the JPanel increases in width.
    2. on contracting: the JTextArea retains its width, and the JPanel contracts.
    after contracting to its minimum width, the JTextArea starts contracting.
    Desired behaviour: the JPanel maintains its width, no matter what. I only what the JTextArea to change in width.
    And after the JTextArea reaches a minimum width, the frame contracts no more ( this i can do by setting the frame's min size ).
    I hope I am more clear and less confusing this time :)
    thanks

  • How to set the language of the component to a particular language?

    Hi!
    I need it for JTextField.
    Thanks.

    This is a sample of Hebrew class extending JTextField, the data typed will be translated to hebrew if neede.
    public class Hfield extends JTextField
         String key = "tcdsvuzjyhlfkonibxg;p.mera,/'q`w";
         String old = "`abcdefghijklmnopqrstuvwxyz.,/;'";
    public Hfield()
         super(1);
    protected void processKeyEvent(KeyEvent ev)
         int d = key.indexOf(ev.getKeyChar());
         if (d >= 0)
              if (d < 27) d = d +1488;
                   else   d = old.charAt(d);
              ev.setKeyChar((char)d);
         super.processKeyEvent(ev);     

Maybe you are looking for