Class Truncate
- java.lang.Object
-
- org.patternfly.component.BaseComponentFlat<HTMLElement,Truncate>
-
- org.patternfly.component.truncate.Truncate
-
- All Implemented Interfaces:
Finder<HTMLElement>,HasElement<HTMLElement,Truncate>,HasHTMLElement<HTMLElement,Truncate>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,Truncate>,Component,WithText<HTMLElement,Truncate>
public class Truncate extends BaseComponentFlat<HTMLElement,Truncate> implements WithText<HTMLElement,Truncate>
A truncate is a tool used to shorten numeric and non-numeric character strings, typically when the string overflows its container.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Truncateposition(TruncatePosition position)Stringtext()Truncatetext(String text)Truncatethat()TruncatetrailingNumChars(int trailingNumChars)static Truncatetruncate(String text)static Truncatetruncate(String text, TruncatePosition position)-
Methods inherited from class org.patternfly.component.BaseComponentFlat
componentType, element
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, id, innerHtml, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
-
-
-
-
Method Detail
-
truncate
public static Truncate truncate(String text, TruncatePosition position)
-
position
public Truncate position(TruncatePosition position)
-
text
public Truncate text(String text)
- Specified by:
textin interfaceWithText<HTMLElement,Truncate>
-
trailingNumChars
public Truncate trailingNumChars(int trailingNumChars)
-
that
public Truncate that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Truncate>
-
text
public String text()
- Specified by:
textin interfaceWithText<HTMLElement,Truncate>
-
-