blob: ae5e055450f06cfc32c2143cbdbe595c3b61e2d7 [file] [log] [blame]
/*
* Copyright (c) 2008 VMware, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package pivot.wtk.content;
import pivot.collections.Dictionary;
import pivot.collections.HashMap;
/**
* Default table row implementation.
*
* @author gbrown
*/
public class TableRow implements Dictionary<String, Object> {
private HashMap<String, Object> cells = new HashMap<String, Object>();
public Object get(String key) {
return cells.get(key);
}
public Object put(String key, Object value) {
return cells.put(key, value);
}
public Object remove(String key) {
return cells.remove(key);
}
public boolean containsKey(String key) {
return cells.containsKey(key);
}
public boolean isEmpty() {
return cells.isEmpty();
}
}