Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
1c94ef78
Commit
1c94ef78
authored
13 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
dead code removed
SVN: 23447
parent
738911c9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/AbstractSimpleBrowserGrid.java
+0
-89
0 additions, 89 deletions
...client/application/ui/grid/AbstractSimpleBrowserGrid.java
with
0 additions
and
89 deletions
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/grid/AbstractSimpleBrowserGrid.java
deleted
100644 → 0
+
0
−
89
View file @
738911c9
/*
* Copyright 2009 ETH Zuerich, CISD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.grid
;
import
java.util.Set
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.framework.IDisplayTypeIDGenerator
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.model.BaseEntityModel
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.columns.framework.IColumnDefinitionKind
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.GridRowModel
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKind
;
/**
* Grid displaying all the entities without any criteria (useful when there is no specific toolbar).
*
* @author Tomasz Pylak
*/
abstract
public
class
AbstractSimpleBrowserGrid
<
T
/* Entity */
>
extends
AbstractBrowserGrid
<
T
,
BaseEntityModel
<
T
>>
{
abstract
protected
IColumnDefinitionKind
<
T
>[]
getStaticColumnsDefinition
();
protected
AbstractSimpleBrowserGrid
(
IViewContext
<
ICommonClientServiceAsync
>
viewContext
,
String
browserId
,
String
gridId
,
IDisplayTypeIDGenerator
displayTypeIDGenerator
)
{
this
(
viewContext
,
browserId
,
gridId
,
true
,
displayTypeIDGenerator
);
}
protected
AbstractSimpleBrowserGrid
(
IViewContext
<
ICommonClientServiceAsync
>
viewContext
,
String
browserId
,
String
gridId
,
boolean
refreshAutomatically
,
IDisplayTypeIDGenerator
displayTypeIDGenerator
)
{
super
(
viewContext
,
gridId
,
refreshAutomatically
,
displayTypeIDGenerator
);
setId
(
browserId
);
updateDefaultRefreshButton
();
}
@Override
protected
ColumnDefsAndConfigs
<
T
>
createColumnsDefinition
()
{
return
BaseEntityModel
.
createColumnConfigs
(
getStaticColumnsDefinition
(),
viewContext
);
}
@Override
protected
boolean
isRefreshEnabled
()
{
return
true
;
}
@Override
protected
void
refresh
()
{
super
.
refresh
(
false
);
}
@Override
protected
void
showEntityViewer
(
T
entity
,
boolean
editMode
,
boolean
inBackground
)
{
// do nothing
}
@Override
protected
BaseEntityModel
<
T
>
createModel
(
GridRowModel
<
T
>
entity
)
{
return
new
BaseEntityModel
<
T
>(
entity
,
getStaticColumnsDefinition
());
}
public
void
update
(
Set
<
DatabaseModificationKind
>
observedModifications
)
{
refreshGridSilently
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment