Class AbstractSelectionPanel

    • Field Detail

      • DEFAULT_REFRESH_TIMEOUT

        public static final int DEFAULT_REFRESH_TIMEOUT
        the default time in msec to wait for refresh to finish.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractSelectionPanel

        public AbstractSelectionPanel()
    • Method Detail

      • waitForEnabled

        protected boolean waitForEnabled​(BaseButton button)
        Waits for a button to become enabled again, for DEFAULT_REFRESH_TIMEOUT milliseconds.
        Parameters:
        button - the button to check
        Returns:
        true if the button became available
        See Also:
        DEFAULT_REFRESH_TIMEOUT
      • waitForEnabled

        protected boolean waitForEnabled​(BaseButton button,
                                         int msec)
        Waits for a button to become enabled again, for a maximum amount of time.
        Parameters:
        button - the button to check
        msec - the maximum amount of milliseconds to wait
        Returns:
        true if the button became available
      • grabFocus

        public abstract void grabFocus()
        Sub-classes need to define which widget grabs the actual focus.
        Overrides:
        grabFocus in class JComponent