Skip to content

Commit

Permalink
minor changes to datatable-autocomplete project.
Browse files Browse the repository at this point in the history
Added several methods, and changed the default CSS heading value to white.
  • Loading branch information
mocleiri committed Mar 2, 2011
1 parent cde4939 commit ed87231
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
Expand Up @@ -104,6 +104,14 @@ public CharSequence decorateScript(CharSequence script) {

}


/**
* @param ajaxCallDecorator the ajaxCallDecorator to set
*/
protected final void setAjaxCallDecorator(IAjaxCallDecorator ajaxCallDecorator) {
this.ajaxCallDecorator = ajaxCallDecorator;
}

/**
* @param actionDeterminesVisibility
* the actionDeterminesVisibility to set
Expand Down Expand Up @@ -285,6 +293,16 @@ public String getAjaxIndicatorMarkupId() {

}


/* (non-Javadoc)
* @see org.apache.wicket.markup.html.form.Button#getOnClickScript()
*/
@Override
protected String getOnClickScript() {
// TODO Auto-generated method stub
return super.getOnClickScript();
}

/*
* (non-Javadoc)
*
Expand Down
Expand Up @@ -17,6 +17,7 @@

import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.html.form.Button;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -59,6 +60,20 @@ public DTAButton(String id, String label) {

}

public DTAButton(String id, IModel<String> labelModel, IFormSubmitAction submitAction) {


super(id, labelModel);
this.submitAction = submitAction;

}

public DTAButton(String id, IModel<String> labelModel) {

this (id, labelModel, null);

}

/* (non-Javadoc)
* @see org.apache.wicket.markup.html.form.Button#onComponentTag(org.apache.wicket.markup.ComponentTag)
*/
Expand Down
Expand Up @@ -8,7 +8,7 @@ color: black;
padding-top: 3px;
padding-bottom: 3px;
padding-left: 8px; padding-right: 30px;
background-color: #c1e4ff;
background-color: #FFFFFF;
border-bottom: 1px solid #0079d6;
border-top: 1px solid #0079d6;
text-align: center;
Expand Down

0 comments on commit ed87231

Please sign in to comment.