org.gwtbootstrap3.extras.fullcalendar.client.ui.Header Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwtbootstrap3-extras Show documentation
Show all versions of gwtbootstrap3-extras Show documentation
Extra, third-party widgets/components for GwtBootstrap3
package org.gwtbootstrap3.extras.fullcalendar.client.ui;
/*
* #%L
* GwtBootstrap3
* %%
* Copyright (C) 2013 - 2014 GwtBootstrap3
* %%
* 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.
* #L%
*/
import com.google.gwt.core.client.JavaScriptObject;
/**
* http://arshaw.com/fullcalendar/docs/display/header/
*
* Setting the header options to false will display no header.
* An object can be supplied with properties left, center, and right.
* These properties contain strings with comma/space separated values.
* Values separated by a comma will be displayed adjacently.
* Values separated by a space will be displayed with a small gap in between.
* Strings can contain any of the following values:
*
* {
* left: 'title',
* center: '',
* right: 'today prev,next'
* }
*
*
* @author Jeff Isenhart
*/
public class Header {
private JavaScriptObject header;
public Header() {
newInstance();
}
private native void newInstance() /*-{
var theInstance = this;
theInstance.@org.gwtbootstrap3.extras.fullcalendar.client.ui.Header::header = {left: 'title', center: '', right: 'today prev,next'};
}-*/;
public native void setNoHeader() /*-{
var theInstance = this;
theInstance.@org.gwtbootstrap3.extras.fullcalendar.client.ui.Header::header = null;
}-*/;
public native void setLeft(String left) /*-{
var theInstance = this;
theInstance.@org.gwtbootstrap3.extras.fullcalendar.client.ui.Header::header.left = left;
}-*/;
public native void setCenter(String center) /*-{
var theInstance = this;
theInstance.@org.gwtbootstrap3.extras.fullcalendar.client.ui.Header::header.center = center;
}-*/;
public native void setRight(String right) /*-{
var theInstance = this;
theInstance.@org.gwtbootstrap3.extras.fullcalendar.client.ui.Header::header.right = right;
}-*/;
public JavaScriptObject toJavaScript() {
return header;
}
}