| Package | Description |
|---|---|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| com.codename1.ui.plaf |
Look of the application can be fully customized via this package, it represents
a rendering layer that can be plugged in separately in runtime and themed to
provide any custom look.
|
| Modifier and Type | Method and Description |
|---|---|
TextSelection.Span |
TextSelection.Spans.first()
Gets the first span in the collection.
|
TextSelection.Span |
TextSelection.Span.getIntersection(int x,
int y,
int w,
int h)
Obtains an intersection span including only the characters that intersect the given rectangle.
|
TextSelection.Span |
TextSelection.Span.getIntersection(int x,
int y,
int w,
int h,
boolean withFlow)
Obtains an intersection span including only the characters that intersect the given rectangle.
|
TextSelection.Span |
TextSelection.Span.getIntersection(Rectangle bounds)
Obtains an intersection span including only the characters that intersect the given rectangle.
|
TextSelection.Span |
TextSelection.Span.getIntersection(Rectangle bounds,
boolean withFlow)
Obtains an intersection span including only the characters that intersect the given rectangle.
|
TextSelection.Span |
TextSelection.Spans.last()
Gets the last span in the collection.
|
TextSelection.Span |
TextSelection.newSpan(Component component)
Creates a new Span based on content in the given component.
|
TextSelection.Span |
TextSelection.Spans.spanOfCharAt(int x,
int y) |
TextSelection.Span |
TextSelection.Span.subspan(int start,
int end)
Gets a subspan containing the Chars between start (inclusive), and end (exclusive).
|
TextSelection.Span |
TextSelection.Span.translate(int tx,
int ty)
Creates a translated span based on this one.
|
TextSelection.Span |
TextSelection.TextSelectionSupport.triggerSelectionAt(TextSelection sel,
int x,
int y)
Trigger a text selection at a given point.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<TextSelection.Span> |
TextSelection.Spans.iterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
TextSelection.Spans.add(TextSelection.Span span)
Adds the given span to the collection, if it is non-empty.
|
String |
TextSelection.TextSelectionSupport.getTextForSpan(TextSelection sel,
TextSelection.Span span)
Returns the text for a given span.
|
| Modifier and Type | Method and Description |
|---|---|
TextSelection.Span |
DefaultLookAndFeel.calculateLabelSpan(TextSelection sel,
Label l)
Deprecated.
|
abstract TextSelection.Span |
LookAndFeel.calculateLabelSpan(TextSelection sel,
Label l)
Deprecated.
Calculates the text selection spans for a given label
|
TextSelection.Span |
DefaultLookAndFeel.calculateSpanForLabelText(TextSelection sel,
Label l,
String text,
int x,
int y,
int textSpaceW)
Deprecated.
|
Copyright © 2023. All rights reserved.