public class RecordLocksView extends BaseViewWithUiHandlers<RecordLocksUIHandler> implements RecordLocksPresenter.MyView
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
RecordLocksView.Binder
GWT UI creator.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
columnNames
Column names.
|
(package private) org.gwtbootstrap3.client.ui.gwt.DataGrid<RecordLockInfo> |
dataGrid
The record locks table view
|
private static com.google.gwt.i18n.shared.DateTimeFormat |
DATE_FORMAT
The date and time formatter
|
(package private) org.gwtbootstrap3.client.ui.Button |
filter
The Filter button
|
private GridHandle<RecordLockInfo> |
gridHandle
The record locks grid handle
|
private com.google.inject.Provider<InputDialog> |
inputDialogProvider
The common input dialogs provider
|
(package private) com.google.gwt.user.client.ui.HasWidgets |
modalFragment
The modal container
|
(package private) org.gwtbootstrap3.client.ui.Button |
refresh
The Refresh button
|
private com.google.gwt.view.client.SingleSelectionModel<RecordLockInfo> |
selectionModel
The record locks selection model
|
logger
Constructor and Description |
---|
RecordLocksView(RecordLocksView.Binder binder,
com.google.inject.Provider<InputDialog> inputDialogProvider)
Constructs this view, used by MPV gwtplatform of ArcBees Inc.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isRecordSelected(RecordLockInfo recordLockInfo)
Tests if the given record has been selected.
|
(package private) void |
onFilter(com.google.gwt.event.dom.client.ClickEvent e)
The Filter button click handler.
|
(package private) void |
onRefresh(com.google.gwt.event.dom.client.ClickEvent e)
The Refresh button click handler.
|
void |
setRecordLocks(RecordLockInfo[] rows,
com.google.gwt.regexp.shared.RegExp filter)
Sets the record locks table model according to the given filter criteria.
|
addDialog, onAttach, onDetach, removeModaDialog, setUiHandlers, setupModaDialog, setupModalSlot
addToSlot, asWidget, bindSlot, bindSlot, bindSlot, initWidget, removeFromSlot, setInSlot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@UiField(provided=true) org.gwtbootstrap3.client.ui.gwt.DataGrid<RecordLockInfo> dataGrid
@UiField org.gwtbootstrap3.client.ui.Button refresh
@UiField org.gwtbootstrap3.client.ui.Button filter
@UiField com.google.gwt.user.client.ui.HasWidgets modalFragment
private final com.google.inject.Provider<InputDialog> inputDialogProvider
private final java.lang.String[] columnNames
private static final com.google.gwt.i18n.shared.DateTimeFormat DATE_FORMAT
private final GridHandle<RecordLockInfo> gridHandle
private final com.google.gwt.view.client.SingleSelectionModel<RecordLockInfo> selectionModel
@Inject RecordLocksView(RecordLocksView.Binder binder, com.google.inject.Provider<InputDialog> inputDialogProvider)
binder
- The injected GWT UI creatorinputDialogProvider
- The injected InputDialog providerpublic void setRecordLocks(RecordLockInfo[] rows, com.google.gwt.regexp.shared.RegExp filter)
setRecordLocks
in interface RecordLocksPresenter.MyView
rows
- The array of recordsfilter
- The filter criteria@UiHandler(value="refresh") void onRefresh(com.google.gwt.event.dom.client.ClickEvent e)
e
- Click event@UiHandler(value="filter") void onFilter(com.google.gwt.event.dom.client.ClickEvent e)
e
- Click eventpublic boolean isRecordSelected(RecordLockInfo recordLockInfo)
isRecordSelected
in interface RecordLocksPresenter.MyView
recordLockInfo
- The tested record