Uses of Class
org.apache.pivot.wtk.Span
-
Packages that use Span Package Description org.apache.pivot.wtk Contains classes that define the structure and behavior of WTK user interface components.org.apache.pivot.wtk.skin.terra Defines skin classes for the "Terra" theme.org.apache.pivot.wtk.text Contains classes representing a text object model. -
-
Uses of Span in org.apache.pivot.wtk
Fields in org.apache.pivot.wtk with type parameters of type Span Modifier and Type Field Description static java.util.Comparator<Span>
Span. END_COMPARATOR
Comparator that determines the index of the last intersecting range.static java.util.Comparator<Span>
Span. INTERSECTION_COMPARATOR
Comparator that determines if two ranges intersect.static java.util.Comparator<Span>
Span. START_COMPARATOR
Comparator that determines the index of the first intersecting range.Methods in org.apache.pivot.wtk that return Span Modifier and Type Method Description static Span
Span. decode(java.lang.String value)
Convert a string into a span.Span
RangeSelection. get(int index)
Span
ScrollBar. getRange()
Span
Slider. getRange()
Span
TextArea. getSelection()
Returns a span representing the current selection.Span
TextInput. getSelection()
Returns a span representing the current selection.Span
TextPane. getSelection()
Returns a span representing the current selection.Span
Span. intersect(Span span)
Calculates the intersection of this span and another span.Span
Span. lengthen(int offset)
Returns a newSpan
with the end value offset by the given value.Span
Span. move(int offset)
Returns a newSpan
with the start value offset by the given value.Span
Span. normalize()
static Span
Span. normalize(int start, int end)
Create a span where the start value is less than or equal to the end value.Span
Span. offset(int offset)
Returns a newSpan
with both values offset by the given value.Span
Span. union(Span span)
Calculates the union of this span and another span.Methods in org.apache.pivot.wtk that return types with arguments of type Span Modifier and Type Method Description Sequence<Span>
RangeSelection. addRange(int start, int end)
Adds a range to the selection, merging and removing intersecting ranges as needed.Sequence<Span>
RangeSelection. addRange(Span range)
Add a range to the selection, merging and removing intersecting ranges as needed.Sequence<Span>
ListView. addSelectedRange(int start, int end)
Adds a range of indexes to the selection.Sequence<Span>
ListView. addSelectedRange(Span range)
Adds a range of indexes to the selection.Sequence<Span>
TableView. addSelectedRange(int start, int end)
Adds a range of indexes to the selection.Sequence<Span>
TableView. addSelectedRange(Span range)
Adds a range of indexes to the selection.ImmutableList<Span>
ListView. getSelectedRanges()
Returns the currently selected ranges.ImmutableList<Span>
RangeSelection. getSelectedRanges()
ImmutableList<Span>
TableView. getSelectedRanges()
Returns the currently selected ranges.Sequence<Span>
RangeSelection. removeRange(int start, int end)
Removes a range from the selection, truncating and removing intersecting ranges as needed.Sequence<Span>
ListView. removeSelectedRange(int start, int end)
Removes a range of indexes from the selection.Sequence<Span>
ListView. removeSelectedRange(Span range)
Removes a range of indexes from the selection.Sequence<Span>
TableView. removeSelectedRange(int start, int end)
Removes a range of indexes from the selection.Sequence<Span>
TableView. removeSelectedRange(Span range)
Removes a range of indexes from the selection.Sequence<Span>
ListView. setSelectedRanges(java.lang.String selectedRanges)
Sets the selection to the given range sequence.Sequence<Span>
ListView. setSelectedRanges(Sequence<Span> selectedRanges)
Sets the selection to the given range sequence.Sequence<Span>
TableView. setSelectedRanges(java.lang.String selectedRanges)
Sets the selection to the given range sequence.Sequence<Span>
TableView. setSelectedRanges(Sequence<Span> selectedRanges)
Sets the selection to the given range sequence.Methods in org.apache.pivot.wtk with parameters of type Span Modifier and Type Method Description Sequence<Span>
RangeSelection. addRange(Span range)
Add a range to the selection, merging and removing intersecting ranges as needed.Sequence<Span>
ListView. addSelectedRange(Span range)
Adds a range of indexes to the selection.Sequence<Span>
TableView. addSelectedRange(Span range)
Adds a range of indexes to the selection.boolean
Span. adjacentTo(Span span)
Determines whether this span is adjacent to another span.boolean
Span. after(Span span)
Determines whether this span is "after" another span.boolean
Span. before(Span span)
Determines whether this span is "before" another span.boolean
Span. contains(Span span)
Determines whether this span contains another span.int
RangeSelection. indexOf(Span range)
Determines the index of a range in the selection.Span
Span. intersect(Span span)
Calculates the intersection of this span and another span.boolean
Span. intersects(Span span)
Determines whether this span intersects with another span.boolean
Span. normalEquals(Span span)
Decides whether the normalized version of this span is equal to the normalized version of the other span.Sequence<Span>
ListView. removeSelectedRange(Span range)
Removes a range of indexes from the selection.Sequence<Span>
TableView. removeSelectedRange(Span range)
Removes a range of indexes from the selection.void
ScrollBar. setRange(Span range)
void
Slider. setRange(Span range)
void
TextArea. setSelection(Span selection)
Sets the selection.void
TextInput. setSelection(Span selection)
Sets the selection.void
TextPane. setSelection(Span selection)
Sets the selection.Span
Span. union(Span span)
Calculates the union of this span and another span.Method parameters in org.apache.pivot.wtk with type arguments of type Span Modifier and Type Method Description void
ListViewSelectionListener.Adapter. selectedRangesChanged(ListView listView, Sequence<Span> previousSelectedRanges)
Deprecated.void
ListViewSelectionListener.Listeners. selectedRangesChanged(ListView listView, Sequence<Span> previousSelection)
default void
ListViewSelectionListener. selectedRangesChanged(ListView listView, Sequence<Span> previousSelectedRanges)
Called when a list view's selection state has changed.void
TableViewSelectionListener.Adapter. selectedRangesChanged(TableView tableView, Sequence<Span> previousSelectedRanges)
Deprecated.void
TableViewSelectionListener.Listeners. selectedRangesChanged(TableView tableView, Sequence<Span> previousSelection)
default void
TableViewSelectionListener. selectedRangesChanged(TableView tableView, Sequence<Span> previousSelectedRanges)
Called when a table view's selection state has been reset.Sequence<Span>
ListView. setSelectedRanges(Sequence<Span> selectedRanges)
Sets the selection to the given range sequence.Sequence<Span>
TableView. setSelectedRanges(Sequence<Span> selectedRanges)
Sets the selection to the given range sequence.Constructors in org.apache.pivot.wtk with parameters of type Span Constructor Description Span(Span span)
Construct a new span from another one (a "copy constructor"). -
Uses of Span in org.apache.pivot.wtk.skin.terra
Method parameters in org.apache.pivot.wtk.skin.terra with type arguments of type Span Modifier and Type Method Description void
TerraListViewSkin. selectedRangesChanged(ListView listView, Sequence<Span> previousSelectedRanges)
void
TerraTableViewSkin. selectedRangesChanged(TableView tableView, Sequence<Span> previousSelectedRanges)
-
Uses of Span in org.apache.pivot.wtk.text
Methods in org.apache.pivot.wtk.text that return Span Modifier and Type Method Description Span
Node. getDocumentSpan()
Methods in org.apache.pivot.wtk.text with parameters of type Span Modifier and Type Method Description java.lang.CharSequence
ComponentNode. getCharacters(Span range)
java.lang.CharSequence
TextNode. getCharacters(Span range)
java.lang.String
ComponentNode. getSubstring(Span range)
java.lang.String
TextNode. getSubstring(Span range)
java.lang.String
TextNode. getText(Span span)
-