|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.data.bind.TruncateBoundValue
A BoundValue that will truncate another string if necessary.
Constructor Summary | |
TruncateBoundValue()
Creates a TruncateBoundValue. |
|
TruncateBoundValue(BoundValue textBinding,
int truncateAt)
Creates a TruncateBoundValue |
Method Summary | |
java.lang.String |
getText()
Returns the text that will be truncated. |
int |
getTruncateAt()
Returns the length at which the text will be truncated. |
java.lang.Object |
getValue(RenderingContext context)
Called to retrieve a value based on the current rendering context. |
void |
setText(java.lang.String text)
Sets the text that will be truncated. |
void |
setTextBinding(BoundValue textBinding)
Sets the databound text that will be truncated. |
void |
setTruncateAt(int truncateAt)
Sets the length at which the text will be truncated. |
static java.lang.Object |
truncateString(RenderingContext context,
java.lang.Object text,
int truncateAt)
Truncates a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TruncateBoundValue()
public TruncateBoundValue(BoundValue textBinding, int truncateAt)
textValue
- the BoundValue that returns the texttruncateAt
- the number of characters at which truncation beginsMethod Detail |
public static java.lang.Object truncateString(RenderingContext context, java.lang.Object text, int truncateAt)
context
- a rendering contexttext
- the text valuetruncateAt
- the number of characters at which the
string should be truncated. Strings will never be truncated
to less than 13 characters.public java.lang.String getText()
public void setText(java.lang.String text)
public void setTextBinding(BoundValue textBinding)
public int getTruncateAt()
public void setTruncateAt(int truncateAt)
public java.lang.Object getValue(RenderingContext context)
BoundValue
getValue
in interface BoundValue
oracle.cabo.ui.data.BoundValue
context
- the rendering context
|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |