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
|
private ModalDialogs |
dialogs
Modal dialogs
|
(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
|
(package private) org.gwtbootstrap3.client.ui.Button |
viewTrace
The View Program Trace button
|
logger
Constructor and Description |
---|
RecordLocksView(RecordLocksView.Binder binder,
ModalDialogs dialogs,
com.google.inject.Provider<InputDialog> inputDialogProvider)
Constructs this view, used by MPV gwtplatform of ArcBees Inc.
|
Modifier and Type | Method and Description |
---|---|
static com.google.gwt.safehtml.shared.SafeHtml |
buildStacktrace(RecordLockInfo ri)
Build the HTML representation of these program traces.
|
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.
|
(package private) void |
onViewTrace(com.google.gwt.event.dom.client.ClickEvent e)
The View Program Trace 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 org.gwtbootstrap3.client.ui.Button viewTrace
@UiField com.google.gwt.user.client.ui.HasWidgets modalFragment
private final com.google.inject.Provider<InputDialog> inputDialogProvider
private final ModalDialogs dialogs
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, ModalDialogs dialogs, com.google.inject.Provider<InputDialog> inputDialogProvider)
binder
- The injected GWT UI creatordialogs
- The injected ModalDialogs providerinputDialogProvider
- The injected InputDialog providerpublic static com.google.gwt.safehtml.shared.SafeHtml buildStacktrace(RecordLockInfo ri)
ri
- The data for the current row.SafeHtml
object holding this cell's content.public 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="viewTrace") void onViewTrace(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