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 java.util.HashMap;
022:
023: import org.apache.beehive.netui.tags.rendering.AnchorTag;
024: import org.apache.beehive.netui.tags.rendering.AnchorTag.State;
025: import org.apache.beehive.netui.databinding.datagrid.api.rendering.CellModel;
026:
027: /**
028: *
029: */
030: public class AnchorCellModel extends CellModel {
031:
032: private String _linkName = null;
033: private Object _value = null;
034: private String _href = null;
035: private String _scopeId = null;
036: private String _action = null;
037: private String _javascript = null;
038: private HashMap _params = null;
039: private AnchorTag.State _anchorState = new AnchorTag.State();
040:
041: public Object getValue() {
042: return _value;
043: }
044:
045: public void setValue(Object value) {
046: _value = value;
047: }
048:
049: public String getHref() {
050: return _href;
051: }
052:
053: public void setHref(String href) {
054: _href = href;
055: }
056:
057: public String getScopeId() {
058: return _scopeId;
059: }
060:
061: public void setScopeId(String scopeId) {
062: _scopeId = scopeId;
063: }
064:
065: public String getAction() {
066: return _action;
067: }
068:
069: public void setAction(String action) {
070: _action = action;
071: }
072:
073: public HashMap getParams() {
074: if (_params == null)
075: _params = new HashMap();
076:
077: return _params;
078: }
079:
080: public void setParams(HashMap params) {
081: _params = params;
082: }
083:
084: public State getAnchorState() {
085: return _anchorState;
086: }
087:
088: public void setAnchorState(State anchorState) {
089: _anchorState = anchorState;
090: }
091:
092: public String getLinkName() {
093: return _linkName;
094: }
095:
096: public void setLinkName(String linkName) {
097: _linkName = linkName;
098: }
099:
100: public String getJavascript() {
101: return _javascript;
102: }
103:
104: public void setJavascript(String javascript) {
105: _javascript = javascript;
106: }
107: }
|