public class WordWrapElement extends Element
Each such element has a group index (by default this is 0). All elements with the same group index are part of the same word wrapping group.
| Modifier and Type | Field and Description |
|---|---|
private int |
idx
Group index.
|
private boolean |
widgetOnly
Is this a widget-only element?
|
| Constructor and Description |
|---|
WordWrapElement(Accessor data,
GenericWidget widget)
Create an instance with a group index of 0.
|
WordWrapElement(Accessor data,
GenericWidget widget,
int idx)
Create an instance with the specified group index.
|
WordWrapElement(Accessor data,
java.lang.String fmt,
GenericWidget widget)
Create an instance with a group index of 0.
|
WordWrapElement(Accessor data,
java.lang.String fmt,
GenericWidget widget,
int idx)
Create an instance with the specified group index.
|
WordWrapElement(BaseDataType data,
GenericWidget widget)
Create an instance with a group index of 0.
|
WordWrapElement(BaseDataType data,
GenericWidget widget,
int idx)
Create an instance with the specified group index.
|
WordWrapElement(BaseDataType data,
java.lang.String fmt,
GenericWidget widget)
Create an instance with a group index of 0.
|
WordWrapElement(BaseDataType data,
java.lang.String fmt,
GenericWidget widget,
int idx)
Create an instance with the specified group index.
|
WordWrapElement(GenericWidget widget)
Create a widget-only instance with a group index of 0.
|
WordWrapElement(GenericWidget widget,
int idx)
Create a widget-only instance with a given group index.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Accesses the group index.
|
boolean |
widgetOnly()
Determines if the element represents a widget with no data (like a
button).
|
boolean |
wordWrap()
Determines if the element should cause word wrap to be activated during
editing operations.
|
get, getDataAccessor, getFormat, getFormattedValue, getWidget, hasFormat, setassignOnly, bypass, getAccumulator, statsColumnprivate int idx
private boolean widgetOnly
public WordWrapElement(GenericWidget widget)
widget - The widget instance representing the exact frame field and
state of that field. Must NOT be null.public WordWrapElement(GenericWidget widget, int idx)
widget - The widget instance representing the exact frame field and
state of that field. Must NOT be null.idx - Group index.public WordWrapElement(Accessor data, GenericWidget widget)
data - The data to display/edit in the given widget. Must NOT be
null.widget - The widget instance representing the exact frame field and
state of that field. Must NOT be null.public WordWrapElement(BaseDataType data, GenericWidget widget)
data - The data to display/edit in the given widget. Must NOT be
null.widget - The widget instance representing the exact frame field and
state of that field. Must NOT be null.public WordWrapElement(Accessor data, GenericWidget widget, int idx)
data - The data to display/edit in the given widget. Must NOT be
null.widget - The widget instance representing the exact frame field and
state of that field. Must NOT be null.idx - Group index.public WordWrapElement(BaseDataType data, GenericWidget widget, int idx)
data - The data to display/edit in the given widget. Must NOT be
null.widget - The widget instance representing the exact frame field and
state of that field. Must NOT be null.idx - Group index.public WordWrapElement(Accessor data, java.lang.String fmt, GenericWidget widget)
data - The data to display/edit in the given widget. Must NOT be
null.fmt - The format string to associate with the data value. May be
null.widget - The widget instance representing the exact frame field and
state of that field. Must NOT be null.public WordWrapElement(BaseDataType data, java.lang.String fmt, GenericWidget widget)
data - The data to display/edit in the given widget. Must NOT be
null.fmt - The format string to associate with the data value. May be
null.widget - The widget instance representing the exact frame field and
state of that field. Must NOT be null.public WordWrapElement(Accessor data, java.lang.String fmt, GenericWidget widget, int idx)
data - The data to display/edit in the given widget. Must NOT be
null.fmt - The format string to associate with the data value. May be
null.widget - The widget instance representing the exact frame field and
state of that field. Must NOT be null.idx - Group index.public WordWrapElement(BaseDataType data, java.lang.String fmt, GenericWidget widget, int idx)
data - The data to display/edit in the given widget. Must NOT be
null.fmt - The format string to associate with the data value. May be
null.widget - The widget instance representing the exact frame field and
state of that field. Must NOT be null.idx - Group index.public boolean wordWrap()
wordWrap in class FrameElementtrue;public int getIndex()
public boolean widgetOnly()
widgetOnly in class FrameElementtrue if this widget has no data or is being used
without its data properties.