Last change
on this file since 1011 was
1011,
checked in by oschonef, 13 years ago
|
- add popup actions menu to private virtual collections table
- CSS updates
|
-
Property svn:eol-style set to
native
|
File size:
981 bytes
|
Line | |
---|
1 | package eu.clarin.cmdi.virtualcollectionregistry.gui.table; |
---|
2 | |
---|
3 | import org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator; |
---|
4 | import org.apache.wicket.extensions.markup.html.repeater.data.table.HeaderlessColumn; |
---|
5 | import org.apache.wicket.markup.repeater.Item; |
---|
6 | import org.apache.wicket.model.IModel; |
---|
7 | |
---|
8 | import eu.clarin.cmdi.virtualcollectionregistry.model.VirtualCollection; |
---|
9 | |
---|
10 | @SuppressWarnings("serial") |
---|
11 | final class ColumnActions extends HeaderlessColumn<VirtualCollection> { |
---|
12 | private final VirtualCollectionTable table; |
---|
13 | |
---|
14 | public ColumnActions(VirtualCollectionTable table) { |
---|
15 | super(); |
---|
16 | this.table = table; |
---|
17 | } |
---|
18 | |
---|
19 | @Override |
---|
20 | public void populateItem(Item<ICellPopulator<VirtualCollection>> item, |
---|
21 | String componentId, IModel<VirtualCollection> model) { |
---|
22 | item.add(table.createActionColumn(componentId, model)); |
---|
23 | } |
---|
24 | |
---|
25 | @Override |
---|
26 | public String getCssClass() { |
---|
27 | return "action"; |
---|
28 | } |
---|
29 | |
---|
30 | } // class ColumnActions |
---|
Note: See
TracBrowser
for help on using the repository browser.