+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.google.gwt.dom.client;\r
\r
/**\r
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util;
import java.io.Serializable;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util;
import java.util.Collection;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util;
import java.util.Collection;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util;
import java.util.Collection;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util;
import java.io.IOException;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util;
import java.io.IOException;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util;
import com.vaadin.data.Property;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util;
import java.io.Serializable;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.filter;
import java.util.Arrays;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.filter;
import com.vaadin.data.Container.Filter;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.filter;
import com.vaadin.data.Container.Filter;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.filter;
import com.vaadin.data.Container.Filter;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.filter;
import com.vaadin.data.Container.Filter;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.filter;
import com.vaadin.data.Container.Filter;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.filter;
import com.vaadin.data.Container.Filter;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.filter;
import com.vaadin.data.Container.Filter;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.filter;
import com.vaadin.data.Container.Filter;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.filter;
import java.io.Serializable;
+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.vaadin.data.util.sqlcontainer;\r
\r
import java.io.Serializable;\r
* CacheFlushNotifier is a simple static notification mechanism to inform other\r
* SQLContainers that the contents of their caches may have become stale.\r
*/\r
-class CacheFlushNotifier implements Serializable{\r
+class CacheFlushNotifier implements Serializable {\r
/*\r
* SQLContainer instance reference list and dead reference queue. Used for\r
* the cache flush notification feature.\r
+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.vaadin.data.util.sqlcontainer;\r
\r
import java.util.LinkedHashMap;\r
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer;
import java.lang.reflect.Constructor;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer;
/**
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer;
public class ReadOnlyRowId extends RowId {
+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.vaadin.data.util.sqlcontainer;\r
\r
import java.io.Serializable;\r
+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.vaadin.data.util.sqlcontainer;\r
\r
import java.io.Serializable;\r
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer;
import java.util.ArrayList;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer;
import java.io.IOException;
private static final Logger logger = Logger.getLogger(SQLContainer.class
.getName());
-
+
/** Query delegate */
private QueryDelegate delegate;
/** Auto commit mode, default = false */
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer;
import java.io.Serializable;
-public class SQLUtil implements Serializable{
- /**
+public class SQLUtil implements Serializable {
+ /**
* Escapes different special characters in strings that are passed to SQL.
* Replaces the following:
*
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer;
public class TemporaryRowId extends RowId {
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.connection;
import java.sql.Connection;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.connection;
import java.io.Serializable;
+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.vaadin.data.util.sqlcontainer.connection;\r
\r
import java.io.IOException;\r
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query;
import java.io.IOException;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query;
import java.io.Serializable;
+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.vaadin.data.util.sqlcontainer.query;\r
\r
import com.vaadin.data.util.sqlcontainer.query.generator.StatementHelper;\r
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query;
import java.io.Serializable;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query;
import java.io.Serializable;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query;
import java.io.IOException;
*
* @see com.vaadin.addon.sqlcontainer.query.QueryDelegate#getCount()
*/
- public int getCount() throws SQLException {
+ public int getCount() throws SQLException {
logger.log(Level.FINE, "Fetching count...");
StatementHelper sh = sqlGenerator.generateSelectQuery(tableName,
filters, null, 0, 0, "COUNT(*)");
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator;
import java.util.HashMap;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator;
import java.util.List;
"SELECT COUNT(*) AS %s FROM (SELECT * FROM %s",
QueryBuilder.quote("rowcount"), tableName));
if (filters != null && !filters.isEmpty()) {
- query.append(QueryBuilder.getWhereStringForFilters(
- filters, sh));
+ query.append(QueryBuilder.getWhereStringForFilters(filters, sh));
}
query.append(") AS t");
sh.setQueryString(query.toString());
query.append("SELECT ").append(toSelect).append(" FROM ")
.append(tableName);
if (filters != null) {
- query.append(QueryBuilder.getWhereStringForFilters(
- filters, sh));
+ query.append(QueryBuilder.getWhereStringForFilters(filters, sh));
}
if (orderBys != null) {
for (OrderBy o : orderBys) {
}
query.append(") AS rownum, " + toSelect + " FROM ").append(tableName);
if (filters != null) {
- query.append(QueryBuilder.getWhereStringForFilters(
- filters, sh));
+ query.append(QueryBuilder.getWhereStringForFilters(filters, sh));
}
query.append(") AS a WHERE a.rownum BETWEEN ").append(offset)
.append(" AND ").append(Integer.toString(offset + pagelength));
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator;
import java.util.List;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator;
import java.io.Serializable;
+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.vaadin.data.util.sqlcontainer.query.generator;\r
\r
import java.io.Serializable;\r
* This class will also fill the values with correct setters into the\r
* PreparedStatement on request.\r
*/\r
-public class StatementHelper implements Serializable{\r
+public class StatementHelper implements Serializable {\r
\r
private String queryString;\r
\r
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
import com.vaadin.data.Container.Filter;
}
public String getWhereStringForFilter(Filter filter, StatementHelper sh) {
- return QueryBuilder.group(QueryBuilder
- .getJoinedFilterString(((And) filter).getFilters(), "AND", sh));
+ return QueryBuilder.group(QueryBuilder.getJoinedFilterString(
+ ((And) filter).getFilters(), "AND", sh));
}
}
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
import com.vaadin.data.Container.Filter;
Between between = (Between) filter;
sh.addParameterValue(between.getStartValue());
sh.addParameterValue(between.getEndValue());
- return QueryBuilder.quote(between.getPropertyId())
- + " BETWEEN ? AND ?";
+ return QueryBuilder.quote(between.getPropertyId()) + " BETWEEN ? AND ?";
}
}
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
import com.vaadin.data.Container.Filter;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
import java.io.Serializable;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
import com.vaadin.data.Container.Filter;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
import com.vaadin.data.Container.Filter;
Like like = (Like) filter;
if (like.isCaseSensitive()) {
sh.addParameterValue(like.getValue());
- return QueryBuilder.quote(like.getPropertyId())
- + " LIKE ?";
+ return QueryBuilder.quote(like.getPropertyId()) + " LIKE ?";
} else {
sh.addParameterValue(like.getValue().toUpperCase());
- return "UPPER("
- + QueryBuilder.quote(like.getPropertyId())
+ return "UPPER(" + QueryBuilder.quote(like.getPropertyId())
+ ") LIKE ?";
}
}
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
import com.vaadin.data.Container.Filter;
Not not = (Not) filter;
if (not.getFilter() instanceof IsNull) {
IsNull in = (IsNull) not.getFilter();
- return QueryBuilder.quote(in.getPropertyId())
- + " IS NOT NULL";
+ return QueryBuilder.quote(in.getPropertyId()) + " IS NOT NULL";
}
return "NOT "
- + QueryBuilder.getWhereStringForFilter(
- not.getFilter(), sh);
+ + QueryBuilder.getWhereStringForFilter(not.getFilter(), sh);
}
}
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
import com.vaadin.data.Container.Filter;
}
public String getWhereStringForFilter(Filter filter, StatementHelper sh) {
- return QueryBuilder.group(QueryBuilder
- .getJoinedFilterString(((Or) filter).getFilters(), "OR", sh));
+ return QueryBuilder.group(QueryBuilder.getJoinedFilterString(
+ ((Or) filter).getFilters(), "OR", sh));
}
}
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
import java.io.Serializable;
import com.vaadin.data.Container.Filter;
import com.vaadin.data.util.sqlcontainer.query.generator.StatementHelper;
-public class QueryBuilder implements Serializable{
+public class QueryBuilder implements Serializable {
private static ArrayList<FilterTranslator> filterTranslators = new ArrayList<FilterTranslator>();
private static StringDecorator stringDecorator = new StringDecorator("\"",
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
import com.vaadin.data.Container.Filter;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.data.util.sqlcontainer.query.generator.filter;
import java.io.Serializable;
*
* @author Vaadin Ltd
*/
-public class StringDecorator implements Serializable{
+public class StringDecorator implements Serializable {
private final String quoteStart;
private final String quoteEnd;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.event;
import java.util.HashSet;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.event;
import com.vaadin.event.Action.Listener;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal;
import java.io.OutputStream;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client;
import com.google.gwt.core.client.JavaScriptObject;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client;
import static com.vaadin.terminal.gwt.client.EventId.BLUR;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client;
public interface EventId {
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client;
import com.google.gwt.xhr.client.XMLHttpRequest;
+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.vaadin.terminal.gwt.client;\r
\r
import java.io.Serializable;\r
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client;
import java.util.Set;
+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.vaadin.terminal.gwt.client;\r
\r
import com.google.gwt.core.client.impl.SchedulerImpl;\r
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client;
/**
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client;
import com.google.gwt.core.client.RunAsyncCallback;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client.ui;
import com.google.gwt.dom.client.DivElement;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client.ui;
import com.google.gwt.event.dom.client.BlurEvent;
+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.vaadin.terminal.gwt.client.ui;\r
\r
import com.google.gwt.event.dom.client.BlurEvent;\r
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client.ui;
import com.google.gwt.core.client.Scheduler;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client.ui;
import com.google.gwt.event.dom.client.BlurEvent;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client.ui;
import java.util.ArrayList;
private int getAnimationTimeForDistance(int dist) {
return 350; // 350ms seems to work quite fine for all distances
-// if (dist < 0) {
-// dist = -dist;
-// }
-// return MAX_DURATION * dist / (scrolledElement.getClientHeight() * 3);
+ // if (dist < 0) {
+ // dist = -dist;
+ // }
+ // return MAX_DURATION * dist / (scrolledElement.getClientHeight() * 3);
}
/**
moveTransformationToScrolloffset();
return;
}
-
+
int translateY = -finalY + origScrollTop;
translateTo(duration, translateY);
}
}
public void onPreviewNativeEvent(NativePreviewEvent event) {
- if(transitionOn) {
+ if (transitionOn) {
/*
* TODO allow starting new events. See issue in onTouchStart
*/
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client.ui;
public class UploadIFrameOnloadStrategy {
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client.ui;
import com.google.gwt.dom.client.Element;
+/*\r
+@ITMillApache2LicenseForJavaFiles@\r
+ */\r
package com.vaadin.terminal.gwt.client.ui;\r
\r
import com.google.gwt.core.client.Scheduler.ScheduledCommand;\r
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client.ui.dd;
import com.google.gwt.dom.client.NativeEvent;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.client.ui.dd;
import com.google.gwt.core.client.JavaScriptObject;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.server;
import com.vaadin.terminal.StreamVariable.StreamingEvent;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.server;
@SuppressWarnings("serial")
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.server;
@SuppressWarnings("serial")
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.server;
import com.vaadin.terminal.StreamVariable.StreamingEndEvent;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.server;
import com.vaadin.terminal.StreamVariable.StreamingErrorEvent;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.server;
import com.vaadin.terminal.StreamVariable.StreamingProgressEvent;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.server;
import com.vaadin.terminal.StreamVariable.StreamingStartEvent;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.terminal.gwt.server;
@SuppressWarnings("serial")
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.ui;
import com.vaadin.terminal.gwt.client.ui.VSplitPanelHorizontal;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.ui;
import java.io.Serializable;
* information about dragged file on server side.
*/
public class Html5File implements Serializable {
-
+
private String name;
private long size;
private StreamVariable streamVariable;
* Sets the {@link StreamVariable} that into which the file contents will be
* written. Usage of StreamVariable is similar to {@link Upload} component.
* <p>
- * If the {@link StreamVariable} is not set in the {@link DropHandler} the file
- * contents will not be sent to server.
+ * If the {@link StreamVariable} is not set in the {@link DropHandler} the
+ * file contents will not be sent to server.
* <p>
* <em>Note!</em> receiving file contents is experimental feature depending
* on HTML 5 API's. It is supported only by modern web browsers like Firefox
return streamVariable;
}
-
}
\ No newline at end of file
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.ui;
import com.vaadin.terminal.gwt.client.ui.VSplitPanelVertical;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.ui.themes;
public class LiferayTheme extends BaseTheme {
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.ui.treetable;
import com.vaadin.data.Container;
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
package com.vaadin.ui.treetable;
import java.util.Collection;
-import com.vaadin.data.Container;
import com.vaadin.data.Container.Hierarchical;
import com.vaadin.data.util.ContainerOrderedWrapper;