KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.util.HashMap JavaDoc;
21
22 import org.apache.beehive.netui.tags.rendering.AnchorTag;
23 import org.apache.beehive.netui.tags.rendering.AnchorTag.State;
24 import org.apache.beehive.netui.databinding.datagrid.api.rendering.CellModel;
25
26 /**
27  *
28  */

29 public class AnchorCellModel
30     extends CellModel {
31
32     private String JavaDoc _linkName = null;
33     private String JavaDoc _value = null;
34     private String JavaDoc _href = null;
35     private String JavaDoc _scopeId = null;
36     private String JavaDoc _action = null;
37     private String JavaDoc _javascript = null;
38     private HashMap JavaDoc _params = null;
39     private AnchorTag.State _anchorState = new AnchorTag.State();
40
41     public String JavaDoc getValue() {
42         return _value;
43     }
44
45     public void setValue(String JavaDoc value) {
46         _value = value;
47     }
48
49     public String JavaDoc getHref() {
50         return _href;
51     }
52
53     public void setHref(String JavaDoc href) {
54         _href = href;
55     }
56
57     public String JavaDoc getScopeId() {
58         return _scopeId;
59     }
60
61     public void setScopeId(String JavaDoc scopeId) {
62         _scopeId = scopeId;
63     }
64
65     public String JavaDoc getAction() {
66         return _action;
67     }
68
69     public void setAction(String JavaDoc action) {
70         _action = action;
71     }
72
73     public HashMap JavaDoc getParams() {
74         if(_params == null)
75             _params = new HashMap JavaDoc();
76
77         return _params;
78     }
79
80     public void setParams(HashMap JavaDoc params) {
81         _params = params;
82     }
83
84     public State getAnchorState() {
85         return _anchorState;
86     }
87
88     public void setAnchorState(State anchorState) {
89         _anchorState = anchorState;
90     }
91
92     public String JavaDoc getLinkName() {
93         return _linkName;
94     }
95
96     public void setLinkName(String JavaDoc linkName) {
97         _linkName = linkName;
98     }
99
100     public String JavaDoc getJavascript() {
101         return _javascript;
102     }
103
104     public void setJavascript(String JavaDoc javascript) {
105         _javascript = javascript;
106     }
107 }
108
Popular Tags