Package org.dwcj.interfaces
Interface TextHighlightable
- All Known Implementing Classes:
DateEditBox,NumericBox,NumericBoxSpinner,StringEditBox,TextArea,TextBox
public interface TextHighlightable
On applicable controls, creates enum which
helps facilitate underlying BBj constant integers for text highlighting
behavior to legible enum values, and facilitates implementation of methods
to interact with this behavior.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThis method returns an enum representing the current behavior of highlighting in a text control when the control receives focus.setHighlightOnFocus(TextHighlightable.Highlight highlight) This method sets the behavior of controls implementing the TextControl interface when receiving focus via the keyboard, mouse, or BBjControl::focus() method FOCUS mnemonic.
-
Method Details
-
getHighlightOnFocus
TextHighlightable.Highlight getHighlightOnFocus()This method returns an enum representing the current behavior of highlighting in a text control when the control receives focus.- Returns:
- Enum representing BBj constant for highlight on focus
-
setHighlightOnFocus
This method sets the behavior of controls implementing the TextControl interface when receiving focus via the keyboard, mouse, or BBjControl::focus() method FOCUS mnemonic.- Parameters:
highlight- Enum representing a BBj constant that dictates highlight behavior for control- Returns:
- The control itself.
-