Package docking.widgets.fieldpanel.field
Class FlowLayoutTextField
java.lang.Object
docking.widgets.fieldpanel.field.VerticalLayoutTextField
docking.widgets.fieldpanel.field.FlowLayoutTextField
This class provides a TextField implementation that takes multiple AttributedString field
 elements and places as many that will fit on a line without clipping before continuing to the
 next line.
- 
Field SummaryFields inherited from class docking.widgets.fieldpanel.field.VerticalLayoutTextFieldhlFactory, isClipped, preferredWidth, startX, subFields, width
- 
Constructor SummaryConstructorsConstructorDescriptionFlowLayoutTextField(FieldElement[] textElements, int startX, int width, int maxLines, FieldHighlightFactory hlFactory) Deprecated, for removal: This API element is subject to removal in a future version.use the constructor that takes a listFlowLayoutTextField(List<FieldElement> elements, int startX, int width, int maxLines, FieldHighlightFactory hlFactory) This constructor will create a text field that will render one line of text.
- 
Method SummaryModifier and TypeMethodDescriptionprotected TextFieldcreateFieldForLine(FieldElement element) Create the text field for given field elementMethods inherited from class docking.widgets.fieldpanel.field.VerticalLayoutTextFieldcalculateHeight, contains, dataToScreenLocation, getCol, getCursorBounds, getFieldElement, getHeight, getHeightAbove, getHeightBelow, getLines, getNumCols, getNumDataRows, getNumRows, getPreferredWidth, getRow, getScrollableUnitIncrement, getStartX, getText, getTextWithLineSeparators, getWidth, getX, getY, isClipped, isPrimary, isValid, layoutElements, paint, rowHeightChanged, screenLocationToTextOffset, screenToDataLocation, setPrimary, textOffsetToScreenLocation, toString
- 
Constructor Details- 
FlowLayoutTextField@Deprecated(since="10.1", forRemoval=true) public FlowLayoutTextField(FieldElement[] textElements, int startX, int width, int maxLines, FieldHighlightFactory hlFactory) Deprecated, for removal: This API element is subject to removal in a future version.use the constructor that takes a listThis constructor will create a text field that will render one line of text. Ifmetrics.stringWidth(text) > width, then the text will be wrapped. Iftextcontains the highlight string, then it will be highlighted using the highlight color.- Parameters:
- textElements- the AttributedStrings to display
- startX- the x position to draw the string
- width- the max width allocated to this field
- maxLines- the max number of lines to display
- hlFactory- the highlight factory
 
- 
FlowLayoutTextFieldpublic FlowLayoutTextField(List<FieldElement> elements, int startX, int width, int maxLines, FieldHighlightFactory hlFactory) This constructor will create a text field that will render one line of text. Ifmetrics.stringWidth(text) > width, then the text will be wrapped. Iftextcontains the highlight string, then it will be highlighted using the highlight color.- Parameters:
- elements- the AttributedStrings to display
- startX- the x position to draw the string
- width- the max width allocated to this field
- maxLines- the max number of lines to display
- hlFactory- the highlight factory
 
 
- 
- 
Method Details- 
createFieldForLineDescription copied from class:VerticalLayoutTextFieldCreate the text field for given field element- Overrides:
- createFieldForLinein class- VerticalLayoutTextField
- Parameters:
- element- the element
- Returns:
- the field
 
 
-