Class EditComponentTextControl

    • Constructor Detail

      • EditComponentTextControl

        public EditComponentTextControl()
        Default constructor with a default text component, default text edit control, and Flow.LINE layout.
      • EditComponentTextControl

        public EditComponentTextControl​(Flow flow)
        Flow constructor with a default text component and text edit control.
        Parameters:
        flow - The logical axis (line or page) along which information is flowed.
        Throws:
        java.lang.NullPointerException - if the flow axis is null.
      • EditComponentTextControl

        public EditComponentTextControl​(TextBox textComponent)
        Text component constructor with default text edit control and Flow.LINE flow.
        Parameters:
        textComponent - The component the text of which is to be edited.
        Throws:
        java.lang.NullPointerException - if the text component is null.
      • EditComponentTextControl

        public EditComponentTextControl​(TextBox textComponent,
                                        Flow flow)
        Text component and flow constructor with default text edit control.
        Parameters:
        textComponent - The component the text of which is to be edited.
        flow - The logical axis (line or page) along which information is flowed.
        Throws:
        java.lang.NullPointerException - if the text component and/or flow is null.
      • EditComponentTextControl

        public EditComponentTextControl​(TextBox textComponent,
                                        ValueControl<java.lang.String> editControl)
        Text component and value control constructor with default Flow.LINE flow.
        Parameters:
        textComponent - The component the text of which is to be edited.
        editControl - The control used to edit the text.
        Throws:
        java.lang.NullPointerException - if the text component and/or edit control is null.
      • EditComponentTextControl

        public EditComponentTextControl​(TextBox textComponent,
                                        ValueControl<java.lang.String> editControl,
                                        Flow flow)
        Text component, value control, and flow constructor.
        Parameters:
        textComponent - The component the text of which is to be edited.
        editControl - The control used to edit the text.
        flow - The logical axis (line or page) along which information is flowed.
        Throws:
        java.lang.NullPointerException - if the text component, value control, and/or flow axis is null.
    • Method Detail

      • getText

        protected java.lang.String getText​(TextBox editedComponent)
        Retrieves the text from the edited component.

        This version returns the value of TextBox.getText()

        Specified by:
        getText in class AbstractEditComponentTextControl<TextBox>
        Parameters:
        editedComponent - The component the text of which is to be edited.
        Returns:
        The current text of the edited component
      • setText

        protected void setText​(TextBox editedComponent,
                               java.lang.String newText)
        Updates the text of the edited component.

        This version updates the text of the component using TextBox.setText(String)

        Specified by:
        setText in class AbstractEditComponentTextControl<TextBox>
        Parameters:
        editedComponent - The component the text of which is to be edited.
        newText - The new text to set in the edited component.