2 * Copyright 2005-2010 the original author or authors.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 package org.wamblee.wicket.behavior;
18 import org.apache.wicket.behavior.IBehavior;
19 import org.wamblee.wicket.jquery.AbstractJQueryBehavior;
22 * Abstract tooltip behavior providing common options for tooltips.
24 * @author Erik Brakkee
26 public class AbstractTooltipBehavior extends AbstractJQueryBehavior {
28 private String border;
29 private String padding;
30 private String background;
32 public AbstractTooltipBehavior(String aFunction, IBehavior... aBehaviors) {
33 super(aFunction, aBehaviors);
36 public AbstractTooltipBehavior border(String aValue) {
41 public AbstractTooltipBehavior padding(String aValue) {
46 public AbstractTooltipBehavior background(String aValue) {
52 protected Object getConfigurationObject() {
56 public String getBorder() {
60 public String getPadding() {
64 public String getBackground() {