Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3520

Update tooltip JAVA API

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.3
    • Fix Version/s: 8.5.0
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      The XULElement currently possess 2 overloads for the setTooltip method:
      https://www.zkoss.org/javadoc/8.0.0/zk/org/zkoss/zul/impl/XulElement.html#setTooltip(org.zkoss.zul.Popup)
      https://www.zkoss.org/javadoc/8.0.0/zk/org/zkoss/zul/impl/XulElement.html#setTooltip(java.lang.String)

      The first overload accept a popup component only. Using this method, the popup will be used as tooltip, always centered on the pointer, with the default delay (500ms).

      The 2nd overload offer more flexibility (can define position (after_end), absolute position (x,y coordinates), delay). However, this method is not convenient to use, as it requires string building, where passing values / component references would be more convenient.
      Also, using some composition methods, uuid may not be available while setting the popup, making string building impossible.

      This could be improved by adding new overloads for the setTooltip method such as:
      setTooltip(Popup popup, String position, Int delay)
      setTooltip(Popup popup, float x, float y, Int delay)
      etc.

      Update:
      Should also apply to similar methods (setContext, setPopup)
      Should cover all possible attribute set in the String, such as type=toggle for popups, etc.

        Attachments

          Activity

            People

            Assignee:
            wenninghsu wenninghsu
            Reporter:
            MDuchemin MDuchemin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h