public class ListGrid extends DataBoundComponent<RecordList> implements HasDataValue, com.smartgwt.mobile.client.internal.widgets.form.fields.CanCopyFieldConfiguration
ListGrid type.
ListGrid implements the HasDataValue
interface, so a ListGrid instance may be used as a field within a
DynamicForm.
When being used as a field, this ListGrid edits the list of subrecords
in the subrecordsProperty
attribute of the mainRecord.
Note that this class is not intended to be used directly. SmartGWT.mobile applications
are encouraged to use the TableView
class instead.
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
protected com.smartgwt.mobile.client.internal.util.NativeIntMap |
fieldNums_ |
_sortSpecifiersalignment, enforcePolicy, hPolicy, members, membersMargin, minMemberSize, momentumScroll, overflow, paddingAsLayoutMargin, reverseOrder, valign, vertical_CONTENT_CHANGED_EVENT_TYPE, _CSS, _HISTORY_ENABLED, _REQUEST_SCROLL_TO_EVENT_TYPE, id, touched| Constructor and Description |
|---|
ListGrid() |
ListGrid(java.lang.String fieldName) |
ListGrid(java.lang.String fieldName,
java.lang.String title) |
| Modifier and Type | Method and Description |
|---|---|
void |
_copyFieldConfiguration(DataSourceField field) |
java.lang.String |
_getRecordBaseStyleProperty() |
boolean |
compareValues(java.lang.Object value1,
java.lang.Object value2)
Compares two values for equality.
|
java.lang.String |
getBaseStyle() |
protected java.lang.String |
getBaseStyle(Record record,
int rowNum,
int colNum) |
java.lang.Boolean |
getCanEdit() |
DataManager |
getDataManager() |
ListGridField |
getField(java.lang.String fieldName) |
java.lang.String |
getFieldName()
Returns the name of this
ListGrid when used as a field in a
DynamicForm. |
java.lang.String |
getFieldName(int colNum) |
int |
getFieldNum(java.lang.String fieldName) |
ListGridField[] |
getFields() |
Record[] |
getFieldValue() |
Record |
getMainRecord()
When this
ListGrid is being used as a field within a
DynamicForm, the main Record
containing the subrecords that this ListGrid is editing. |
java.lang.String |
getRecordBaseStyleProperty() |
SelectionStyle |
getSelectionType() |
java.lang.Boolean |
getShowTitle()
|
java.lang.String |
getSubrecordsProperty()
When this
ListGrid is being used as a field within a
DynamicForm, the name of the subrecords property
of the mainRecord that this ListGrid is editing. |
java.lang.String |
getTitle()
Returns the title of this
ListGrid when used as a field in a
DynamicForm. |
Validator[] |
getValidators() |
void |
setBaseStyle(java.lang.String baseStyle) |
void |
setCanEdit(java.lang.Boolean canEdit)
Setter for
canEdit. |
void |
setDataManager(DataManager dataManager)
Sets the associated
DataManager instance. |
void |
setFieldName(java.lang.String fieldName)
Sets the field name returned by the
HasDataValue.getFieldName()
API. |
void |
setFields(ListGridField... fields) |
void |
setMainRecord(Record mainRecord)
Setter for
mainRecord. |
void |
setRecordBaseStyleProperty(java.lang.String recordBaseStyleProperty) |
void |
setSelectionType(SelectionStyle selectionType) |
void |
setShowTitle(java.lang.Boolean showTitle)
Setter for
HasDataValue.showTitle. |
void |
setSubrecordsProperty(java.lang.String subrecordsProperty) |
void |
setTitle(java.lang.String title)
Sets the field title returned by the
HasDataValue.getTitle()
API. |
void |
setValidators(Validator... validators) |
void |
showValue(java.lang.Object value)
Called by the
DataManager to notify this HasDataValue that
the DataManager's value for this HasDataValue was changed
and that this HasDataValue needs to update its display field to the given
value. |
void |
updateCanEdit()
Called by the
DataManager to notify this HasDataValue that
the DataManager's canEdit
attribute changed and that this HasDataValue's editability may have changed
as a result. |
_buildRequest, _cloneComponentValues, _createDataModel, _createSelectionModel, _destroySelectionModel, _duplicateValues, _filter, _filterWithCriteria, _fireSelectionUpdated, _getData, _getDeepCloneOnEdit, _getInitialCriteria, _getInnerAttributeFromSplitLocator, _getSelection, _getSelectionObject, _resolveStopOnError, _setDeepCloneOnEdit, _updateDataModel, _validateField, _validateFieldAndDependencies, addSelectionUpdatedHandler, deselectAllRecords, deselectRecord, deselectRecords, destroy, fetchData, fetchData, fetchData, fetchData, filterData, getCriteria, getDataFetchMode, getDataField, getDataPageSize, getDataSource, getDescriptionField, getFetchOperation, getIconField, getInfoField, getRecordList, getResultSet, getSelectedRecord, getSelectedRecords, getSort, getStopOnError, getTitleField, getUseAllDataSourceFields, invalidateCache, isPartiallySelected, isSelected, selectRecord, selectRecord, selectRecords, selectRecords, selectSingleRecord, setCriteria, setData, setDataFetchMode, setDataField, setDataPageSize, setDataSource, setDescriptionField, setFetchOperation, setIconField, setInfoField, setSort, setStopOnError, setTitleField, setUseAllDataSourceFieldsaddDragMoveHandler, addMember, addMember, addMembers, addMembers, addMembers, clear, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, getLayoutTopMargin, getManagePercentBreadth, getMember, getMember, getMemberNumber, getMemberNumber, getMembers, getMembersMargin, getMinMemberSize, getMomentumScroll, getOverflow, getPaddingAsLayoutMargin, getReverseOrder, getVertical, getVPolicy, hasMember, hideMember, hideMember, reflow, removeMember, removeMember, removeMembers, removeMembers, reorderMember, reorderMembers, setAlign, setAlign, setDefaultLayoutAlign, setDefaultLayoutAlign, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, setLayoutTopMargin, setManagePercentBreadth, setMembers, setMembersMargin, setMinMemberSize, setMomentumScroll, setOverflow, setPaddingAsLayoutMargin, setReverseOrder, setVertical, setVisibleMember, setVPolicy, showMember, showMember_add, _booleanValue, _fireContentChangedEvent, _fireContentChangedEvent, _fireRequestScrollToEvent, _getAndroidWindowSoftInputMode, _getAttributeFromSplitLocator, _getChildFromLocatorSubstring, _getFixNavigationBarPositionDuringKeyboardFocus, _getHideTabBarDuringKeyboardFocus, _getInnerElement, _hideAddressBar, _hideAddressBarNow, _insert, _isDifferent, _isHDPIDisplay, _isIOS4OrOlder, _isIOS5, _isIOSMin6_0, _isStandaloneMode, _nativeParseFloat, _removeClassName, _setClassName, _setHandleDisabled, _sinkAnimationEndEvent, _sinkContentChangedEvent, _sinkFocusInEvent, _sinkFocusOutEvent, _sinkInputEvent, _sinkRequestScrollToEvent, _sinkTransitionEndEvent, _triggerDebugger, addChild, addChild, addChild, addClickHandler, addShowContextMenuHandler, disable, enable, getContextMenu, getID, getInnerHTML, getMargin, hasChild, hasChild, isAndroid, isDisabled, isEnabled, isIPad, isIPhone, isSafari, isStandAlone, isUIWebView, onBrowserEvent, parseDimension, removeChild, removeChild, setContents, setContextMenu, setDisabled, setElement, setID, setMargin, setStyleName, split, useIOSNativeScrollingadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, add, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetStopOnError@SGWTInternal protected transient com.smartgwt.mobile.client.internal.util.NativeIntMap fieldNums_
public ListGrid()
public ListGrid(java.lang.String fieldName)
public ListGrid(java.lang.String fieldName,
java.lang.String title)
public final java.lang.String getBaseStyle()
public void setBaseStyle(java.lang.String baseStyle)
protected java.lang.String getBaseStyle(Record record, int rowNum, int colNum)
public final java.lang.Boolean getCanEdit()
getCanEdit in interface HasDataValuepublic void setCanEdit(java.lang.Boolean canEdit)
canEdit.setCanEdit in interface HasDataValuecanEdit - an explicit override.public final DataManager getDataManager()
public void setDataManager(DataManager dataManager)
HasDataValueDataManager instance.
This HasDataValue instance uses the DataManager to post
notifications of changes to its value caused by user action.
setDataManager in interface HasDataValuedataManager - the associated DataManager.DataManager.storeValue(String, Object)public final ListGridField getField(java.lang.String fieldName)
public final java.lang.String getFieldName()
ListGrid when used as a field in a
DynamicForm.getFieldName in interface HasDataValuepublic void setFieldName(java.lang.String fieldName)
HasDataValue.getFieldName()
API.fieldName - the name of this ListGrid when used as a field in a
DynamicForm.public java.lang.String getFieldName(int colNum)
public final int getFieldNum(java.lang.String fieldName)
public final ListGridField[] getFields()
public void setFields(ListGridField... fields)
public final Record getMainRecord()
ListGrid is being used as a field within a
DynamicForm, the main Record
containing the subrecords that this ListGrid is editing.public void setMainRecord(Record mainRecord)
mainRecord.mainRecord - the main record.public final java.lang.String getRecordBaseStyleProperty()
@SGWTInternal public final java.lang.String _getRecordBaseStyleProperty()
public void setRecordBaseStyleProperty(java.lang.String recordBaseStyleProperty)
public final SelectionStyle getSelectionType()
public void setSelectionType(SelectionStyle selectionType)
public final java.lang.Boolean getShowTitle()
HasDataValuegetShowTitle in interface HasDataValuepublic void setShowTitle(java.lang.Boolean showTitle)
HasDataValue.showTitle.showTitle - if null or Boolean.TRUE, show the
getTitle() title for this ListGrid being used as a field in a
DynamicForm.public final java.lang.String getTitle()
ListGrid when used as a field in a
DynamicForm.getTitle in interface HasDataValuegetTitle in class com.google.gwt.user.client.ui.UIObjectpublic void setTitle(java.lang.String title)
HasDataValue.getTitle()
API.setTitle in class com.google.gwt.user.client.ui.UIObjecttitle - the title of this ListGrid when used as a field in a
DynamicForm.public final java.lang.String getSubrecordsProperty()
ListGrid is being used as a field within a
DynamicForm, the name of the subrecords property
of the mainRecord that this ListGrid is editing.mainRecord. Default value: "_grid"public void setSubrecordsProperty(java.lang.String subrecordsProperty)
public Record[] getFieldValue()
public final Validator[] getValidators()
getValidators in interface HasDataValuepublic void setValidators(Validator... validators)
public boolean compareValues(java.lang.Object value1,
java.lang.Object value2)
HasDataValuecompareValues in interface HasDataValuevalue1 - first value.value2 - second value.true if value1 is equal to value2 in the
context of this HasDataValue; false otherwise.public void _copyFieldConfiguration(DataSourceField field)
_copyFieldConfiguration in interface com.smartgwt.mobile.client.internal.widgets.form.fields.CanCopyFieldConfigurationpublic void showValue(java.lang.Object value)
HasDataValueDataManager to notify this HasDataValue that
the DataManager's value for this HasDataValue was changed
and that this HasDataValue needs to update its display field to the given
value.
NOTE: An implementation must not call the associated DataManager's
DataManager.storeValue(String, Object)
method.
showValue in interface HasDataValuevalue - the new value.public void updateCanEdit()
HasDataValueDataManager to notify this HasDataValue that
the DataManager's canEdit
attribute changed and that this HasDataValue's editability may have changed
as a result.updateCanEdit in interface HasDataValue