KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > table > AvailableTableItemAction


1 package com.sslexplorer.table;
2
3 import javax.servlet.http.HttpServletRequest JavaDoc;
4
5 import com.sslexplorer.core.AvailableMenuItem;
6 import com.sslexplorer.core.MenuItem;
7 import com.sslexplorer.security.SessionInfo;
8
9 public class AvailableTableItemAction extends AvailableMenuItem {
10     
11     private TableItemModel itemModel;
12     private int rowIndex;
13     private TableItem rowItem;
14     private Pager pager;
15
16     public AvailableTableItemAction(MenuItem menuItem,
17             AvailableMenuItem parent, HttpServletRequest JavaDoc request,
18             String JavaDoc referer, int checkNavigationContext, SessionInfo info) {
19         super(menuItem, parent, request, referer, checkNavigationContext, info);
20     }
21     
22     public String JavaDoc getOnClick() {
23         return ((TableItemAction)getMenuItem()).getOnClick(this);
24     }
25     
26     public String JavaDoc getToolTipContentLocation() {
27         return ((TableItemAction)getMenuItem()).getToolTipContentLocation(this);
28     }
29     
30     public int getToolTipWidth() {
31         return ((TableItemAction)getMenuItem()).getToolTipWidth(this);
32     }
33     
34     public String JavaDoc getAdditionalAttributeName() {
35         return ((TableItemAction)getMenuItem()).getAdditionalAttributeName();
36     }
37     
38     public String JavaDoc getAdditionalAttributeValue() {
39         return ((TableItemAction)getMenuItem()).getAdditionalAttributeValue(this);
40     }
41     
42     public boolean isEnabled() {
43         return ((TableItemAction)getMenuItem()).isEnabled(this);
44     }
45     
46     public String JavaDoc getPath() {
47         return ((TableItemAction)getMenuItem()).getPath(this);
48     }
49     
50     public TableItemModel getItemModel() {
51         return itemModel;
52     }
53     
54     public int getRowIndex() {
55         return rowIndex;
56     }
57     
58     public TableItem getRowItem() {
59         return rowItem;
60     }
61     
62     public Pager getPager() {
63         return pager;
64     }
65     
66     public void init(Pager pager, int rowIndex) {
67         this.pager = pager;
68         this.itemModel = pager.getModel();
69         this.rowIndex = rowIndex;
70         rowItem = pager.getFilteredItem(rowIndex + pager.getStartRow());
71     }
72
73 }
74
Popular Tags