KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > databinding > datagrid > runtime > model > cell > HeaderCellModel


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18 package org.apache.beehive.netui.databinding.datagrid.runtime.model.cell;
19
20 import org.apache.beehive.netui.databinding.datagrid.api.rendering.CellModel;
21
22 /**
23  *
24  */

25 public class HeaderCellModel
26     extends CellModel {
27
28     private String JavaDoc _headerText = null;
29     private String JavaDoc _bodyContent = null;
30
31     private String JavaDoc _scopeId = null;
32
33     private boolean _disableSortRendering = false;
34     private String JavaDoc _sortExpression = null;
35     private String JavaDoc _sortAction = null;
36     private String JavaDoc _sortHref = null;
37
38     private boolean _disableFilterRendering = false;
39     private String JavaDoc _filterExpression = null;
40     private String JavaDoc _filterAction = null;
41     private String JavaDoc _filterHref = null;
42
43     public String JavaDoc getScopeId() {
44         return _scopeId;
45     }
46
47     public void setScopeId(String JavaDoc scopeId) {
48         _scopeId = scopeId;
49     }
50
51     public String JavaDoc getSortAction() {
52         return _sortAction;
53     }
54
55     public void setSortAction(String JavaDoc sortAction) {
56         _sortAction = sortAction;
57     }
58
59     public String JavaDoc getSortHref() {
60         return _sortHref;
61     }
62
63     public void setSortHref(String JavaDoc sortHref) {
64         _sortHref = sortHref;
65     }
66
67     public boolean isSortable() {
68         return _sortExpression != null;
69     }
70
71     public boolean isDisableSortRendering() {
72         return _disableSortRendering;
73     }
74
75     public void setDisableSortRendering(boolean disableSortRendering) {
76         _disableSortRendering = disableSortRendering;
77     }
78
79     public String JavaDoc getSortExpression() {
80         return _sortExpression;
81     }
82
83     public void setSortExpression(String JavaDoc sortExpression) {
84         _sortExpression = sortExpression;
85     }
86
87     public boolean isDisableFilterRendering() {
88         return _disableFilterRendering;
89     }
90
91     public void setDisableFilterRendering(boolean disableFilterRendering) {
92         _disableFilterRendering = disableFilterRendering;
93     }
94
95     public String JavaDoc getFilterExpression() {
96         return _filterExpression;
97     }
98
99     public void setFilterExpression(String JavaDoc filterExpression) {
100         _filterExpression = filterExpression;
101     }
102
103     public String JavaDoc getFilterAction() {
104         return _filterAction;
105     }
106
107     public void setFilterAction(String JavaDoc filterAction) {
108         _filterAction = filterAction;
109     }
110
111     public String JavaDoc getFilterHref() {
112         return _filterHref;
113     }
114
115     public void setFilterHref(String JavaDoc filterHref) {
116         _filterHref = filterHref;
117     }
118
119     public boolean isFilterable() {
120         return _filterExpression != null;
121     }
122
123     public String JavaDoc getHeaderText() {
124         return _headerText;
125     }
126
127     public void setHeaderText(String JavaDoc headerText) {
128         _headerText = headerText;
129     }
130
131     public String JavaDoc getBodyContent() {
132         return _bodyContent;
133     }
134
135     public void setBodyContent(String JavaDoc bodyContent) {
136         _bodyContent = bodyContent;
137     }
138 }
139
Popular Tags