Class ComboBoxEditor

    • Constructor Detail

      • ComboBoxEditor

        public ComboBoxEditor()
        Constructor.
    • Method Detail

      • getComboBox

        public ro.sync.exml.editor.helpers.attributes.AttrValueComboBoxEditor getComboBox()
        Returns:
        Returns the comboBox.
      • getValue

        public java.lang.Object getValue()
        Description copied from interface: InplaceEditor
        Gets the value that the user entered.
        Returns:
        The value that the user entered.
        See Also:
        InplaceEditor.getValue()
      • getDescription

        public java.lang.String getDescription()
        Returns:
        The description of the extension.
        See Also:
        Extension.getDescription()
      • getScrollRectangle

        public Rectangle getScrollRectangle()
        Description copied from interface: InplaceEditor
        Returns a rectangle that should be made visible after the editor is shown. The coordinate should be relative to the editor itself. The default behavior is to make the entire editor visible but if the editor is bigger than the viewport the visible part might not be the right one. For example is the editor is a text field the caret might not be visible. This is when this method is useful. The caret rectangle should be returned so that the part of the editor with the caret is presented.
        Returns:
        A rectangle to be made visible or null to make the entire editor visible.
        See Also:
        InplaceEditor.getScrollRectangle()
      • insertContent

        public boolean insertContent​(java.lang.String content)
        Description copied from interface: InplaceEditor
        An insert text event was received by the author page and redirected to this currently active form control. The form control should insert this text as it sees fit. For example a text field might insert it at the caret position. An example when this event comes is when the user uses the Character Map Dialog to insert characters directly into a form control.
        Specified by:
        insertContent in interface InplaceEditor
        Overrides:
        insertContent in class AbstractInplaceEditor
        Parameters:
        content - Content to be inserted.
        Returns:
        true if the event was handled or false if the form control can do nothing with the string. For example a text field can insert the text inside it but a check box form control can do nothing with it. If false is returned the form control editing session will be stopped and the author page will handle the event instead.
        See Also:
        AbstractInplaceEditor.insertContent(java.lang.String)