001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: *
017: * $Header:$
018: */
019: package org.apache.beehive.netui.databinding.datagrid.runtime.model.cell;
020:
021: import org.apache.beehive.netui.databinding.datagrid.api.rendering.CellModel;
022:
023: /**
024: *
025: */
026: public class HeaderCellModel extends CellModel {
027:
028: private Object _value = null;
029: private String _bodyContent = null;
030:
031: private String _scopeId = null;
032:
033: private boolean _disableSortRendering = false;
034: private String _sortExpression = null;
035: private String _sortAction = null;
036: private String _sortHref = null;
037:
038: private boolean _disableFilterRendering = false;
039: private String _filterExpression = null;
040: private String _filterAction = null;
041: private String _filterHref = null;
042:
043: public String getScopeId() {
044: return _scopeId;
045: }
046:
047: public void setScopeId(String scopeId) {
048: _scopeId = scopeId;
049: }
050:
051: public String getSortAction() {
052: return _sortAction;
053: }
054:
055: public void setSortAction(String sortAction) {
056: _sortAction = sortAction;
057: }
058:
059: public String getSortHref() {
060: return _sortHref;
061: }
062:
063: public void setSortHref(String sortHref) {
064: _sortHref = sortHref;
065: }
066:
067: public boolean isSortable() {
068: return _sortExpression != null;
069: }
070:
071: public boolean isDisableSortRendering() {
072: return _disableSortRendering;
073: }
074:
075: public void setDisableSortRendering(boolean disableSortRendering) {
076: _disableSortRendering = disableSortRendering;
077: }
078:
079: public String getSortExpression() {
080: return _sortExpression;
081: }
082:
083: public void setSortExpression(String sortExpression) {
084: _sortExpression = sortExpression;
085: }
086:
087: public boolean isDisableFilterRendering() {
088: return _disableFilterRendering;
089: }
090:
091: public void setDisableFilterRendering(boolean disableFilterRendering) {
092: _disableFilterRendering = disableFilterRendering;
093: }
094:
095: public String getFilterExpression() {
096: return _filterExpression;
097: }
098:
099: public void setFilterExpression(String filterExpression) {
100: _filterExpression = filterExpression;
101: }
102:
103: public String getFilterAction() {
104: return _filterAction;
105: }
106:
107: public void setFilterAction(String filterAction) {
108: _filterAction = filterAction;
109: }
110:
111: public String getFilterHref() {
112: return _filterHref;
113: }
114:
115: public void setFilterHref(String filterHref) {
116: _filterHref = filterHref;
117: }
118:
119: public boolean isFilterable() {
120: return _filterExpression != null;
121: }
122:
123: public String getBodyContent() {
124: return _bodyContent;
125: }
126:
127: public void setBodyContent(String bodyContent) {
128: _bodyContent = bodyContent;
129: }
130:
131: public void setValue(Object value) {
132: _value = value;
133: }
134:
135: public Object getValue() {
136: return _value;
137: }
138: }
|