@@ -66,15 +66,15 @@ public class AnimationUtil { | |||
listener.@com.vaadin.client.AnimationUtil.AnimationEndListener::onAnimationEnd(Lcom/google/gwt/dom/client/NativeEvent;)(e); | |||
}); | |||
callbackFunc.listener = listener; | |||
elem.addEventListener(@com.vaadin.client.AnimationUtil::ANIMATION_END_EVENT_NAME, callbackFunc, false); | |||
// Store function reference for later removal | |||
if (!elem._vaadin_animationend_callbacks) { | |||
elem._vaadin_animationend_callbacks = []; | |||
} | |||
elem._vaadin_animationend_callbacks.push(callbackFunc); | |||
return callbackFunc; | |||
}-*/; | |||
@@ -137,7 +137,7 @@ public class AnimationUtil { | |||
return event.mozAnimationName; | |||
if (event.oAnimationName) | |||
return event.oAnimationName; | |||
return ""; | |||
}-*/; | |||
@@ -145,22 +145,22 @@ public class AnimationUtil { | |||
public static native String getAnimationName(ComputedStyle cstyle) | |||
/*-{ | |||
var cs = cstyle.@com.vaadin.client.ComputedStyle::computedStyle; | |||
if (!cs.getPropertyValue) | |||
return ""; | |||
if (cs.getPropertyValue("-webkit-animation-name")) | |||
return cs.getPropertyValue("-webkit-animation-name"); | |||
if (cs.getPropertyValue("animation-name")) | |||
return cs.getPropertyValue("animation-name"); | |||
if (cs.getPropertyValue("-moz-animation-name")) | |||
return cs.getPropertyValue("-moz-animation-name"); | |||
if (cs.getPropertyValue("-o-animation-name")) | |||
return cs.getPropertyValue("-o-animation-name"); | |||
return ""; | |||
}-*/; | |||
@@ -175,7 +175,7 @@ public class AnimationUtil { | |||
'MozAnimation': 'animationend', | |||
'WebkitAnimation': 'webkitAnimationEnd' | |||
} | |||
for (var a in anims) { | |||
if ( el.style[a] !== undefined ) { | |||
return anims[a]; | |||
@@ -194,7 +194,7 @@ public class AnimationUtil { | |||
'mozAnimation', | |||
'webkitAnimation' | |||
] | |||
for (var i=0; i < anims.length; i++) { | |||
if ( el.style[anims[i]] !== undefined ) { | |||
return anims[i]; |
@@ -494,7 +494,7 @@ public class ApplicationConnection implements HasHandlers { | |||
return vi; | |||
} | |||
} | |||
client.getProfilingData = $entry(function() { | |||
var smh = ap.@com.vaadin.client.ApplicationConnection::getMessageHandler()(); | |||
var pd = [ | |||
@@ -509,7 +509,7 @@ public class ApplicationConnection implements HasHandlers { | |||
pd[pd.length] = smh.@com.vaadin.client.communication.MessageHandler::bootstrapTime; | |||
return pd; | |||
}); | |||
client.getElementByPath = $entry(function(id) { | |||
return componentLocator.@com.vaadin.client.componentlocator.ComponentLocator::getElementByPath(Ljava/lang/String;)(id); | |||
}); | |||
@@ -526,7 +526,7 @@ public class ApplicationConnection implements HasHandlers { | |||
return componentLocator.@com.vaadin.client.componentlocator.ComponentLocator::getPathForElement(Lcom/google/gwt/dom/client/Element;)(element); | |||
}); | |||
client.initializing = false; | |||
$wnd.vaadin.clients[TTAppId] = client; | |||
}-*/; | |||
@@ -63,11 +63,11 @@ public class CSSRule { | |||
/*-{ | |||
if (!$doc.styleSheets) | |||
return null; | |||
selector = selector.toLowerCase('en'); | |||
var allMatches = []; | |||
// IE handles imported sheet differently | |||
if (deep && sheet.imports && sheet.imports.length > 0) { | |||
for (var i=0; i < sheet.imports.length; i++) { | |||
@@ -76,13 +76,13 @@ public class CSSRule { | |||
allMatches.concat(imports); | |||
} | |||
} | |||
var theRules = new Array(); | |||
if (sheet.cssRules) | |||
theRules = sheet.cssRules | |||
else if (sheet.rules) | |||
theRules = sheet.rules | |||
var j = theRules.length; | |||
for (var i=0; i<j; i++) { | |||
var r = theRules[i]; | |||
@@ -102,7 +102,7 @@ public class CSSRule { | |||
allMatches = allMatches.concat(imports); | |||
} | |||
} | |||
return allMatches; | |||
}-*/; | |||
@@ -98,7 +98,7 @@ public class DateTimeService { | |||
/** | |||
* Returns the localized short name of the specified day. | |||
* | |||
* | |||
* @param day | |||
* the day, {@code 0} is {@code SUNDAY} | |||
* @return the localized short name | |||
@@ -114,7 +114,7 @@ public class DateTimeService { | |||
/** | |||
* Returns the first day of the week, according to the used Locale. | |||
* | |||
* | |||
* @return the localized first day of the week, {@code 0} is {@code SUNDAY} | |||
*/ | |||
public int getFirstDayOfWeek() { | |||
@@ -128,7 +128,7 @@ public class DateTimeService { | |||
/** | |||
* Returns whether the locale has twelve hour, or twenty four hour clock. | |||
* | |||
* | |||
* @return {@code true} if the locale has twelve hour clock, {@code false} | |||
* for twenty four clock | |||
*/ | |||
@@ -165,7 +165,7 @@ public class DateTimeService { | |||
/** | |||
* Returns the first day of week of the specified {@code month}. | |||
* | |||
* | |||
* @param month | |||
* the month, not {@code null} | |||
* @return the first day of week, | |||
@@ -473,7 +473,7 @@ public class DateTimeService { | |||
/** | |||
* Replaces the {@code z} characters of the specified {@code formatStr} with | |||
* the given {@code timeZoneName}. | |||
* | |||
* | |||
* @param formatStr | |||
* The format string, which is the pattern describing the date | |||
* and time format |
@@ -405,12 +405,12 @@ public class ResourceLoader { | |||
if (rules === undefined) { | |||
rules = sheet.rules; | |||
} | |||
if (rules === null) { | |||
// Style sheet loaded, but can't access length because of XSS -> assume there's something there | |||
return 1; | |||
} | |||
// Return length so we can distinguish 0 (probably 404 error) from normal case. | |||
return rules.length; | |||
} catch (err) { |
@@ -47,7 +47,7 @@ public class StyleConstants { | |||
/** | |||
* Style name and style name prefix for the error indicator element. | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public static final String STYLE_NAME_ERROR_INDICATOR = "v-errorindicator"; |
@@ -125,13 +125,13 @@ public class SuperDevMode { | |||
private static native String getRecompileParameters(String moduleName) | |||
/*-{ | |||
var prop_map = $wnd.__gwt_activeModules[moduleName].bindings(); | |||
// convert map to URL parameter string | |||
var props = []; | |||
for (var key in prop_map) { | |||
props.push(encodeURIComponent(key) + '=' + encodeURIComponent(prop_map[key])) | |||
} | |||
return props.join('&') + '&'; | |||
}-*/; | |||
@@ -225,12 +225,12 @@ public class SuperDevMode { | |||
var mod = $wnd.__gwt_activeModules[moduleName]; | |||
if (!mod) | |||
return false; | |||
if (mod.superdevmode) { | |||
// Running in super dev mode already, it is supported | |||
return true; | |||
} | |||
return !!mod.canRedirect; | |||
}-*/; | |||
@@ -525,7 +525,7 @@ public class AtmospherePushConnection implements PushConnection { | |||
JavaScriptObject config) | |||
/*-{ | |||
var self = this; | |||
config.url = uri; | |||
config.onOpen = $entry(function(response) { | |||
self.@com.vaadin.client.communication.AtmospherePushConnection::onOpen(*)(response); | |||
@@ -551,7 +551,7 @@ public class AtmospherePushConnection implements PushConnection { | |||
config.onClientTimeout = $entry(function(request) { | |||
self.@com.vaadin.client.communication.AtmospherePushConnection::onClientTimeout(*)(request); | |||
}); | |||
return $wnd.vaadinPush.atmosphere.subscribe(config); | |||
}-*/; | |||
@@ -66,7 +66,7 @@ public class JavaScriptRendererConnector | |||
private static native JavaScriptObject createCellReferenceWrapper() | |||
/*-{ | |||
var reference = {}; | |||
var setProperty = function(name, getter, setter) { | |||
var descriptor = { | |||
get: getter | |||
@@ -76,25 +76,25 @@ public class JavaScriptRendererConnector | |||
} | |||
Object.defineProperty(reference, name, descriptor); | |||
}; | |||
setProperty("element", function() { | |||
return reference.target.@CellReference::getElement()(); | |||
}, null); | |||
setProperty("rowIndex", function() { | |||
return reference.target.@CellReference::getRowIndex()(); | |||
}, null); | |||
setProperty("columnIndex", function() { | |||
return reference.target.@CellReference::getColumnIndex()(); | |||
}, null); | |||
setProperty("colSpan", function() { | |||
return reference.target.@RendererCellReference::getColSpan()(); | |||
}, function(colSpan) { | |||
reference.target.@RendererCellReference::setColSpan(*)(colSpan); | |||
}); | |||
return reference; | |||
}-*/; | |||
@@ -80,7 +80,7 @@ public abstract class AbstractSelectionModelConnector | |||
/** | |||
* Gets space selection handler registered for the Grid. | |||
* | |||
* | |||
* @return space selection handler | |||
*/ | |||
protected SpaceSelectHandler<JsonObject> getSpaceSelectionHandler() { |
@@ -522,10 +522,10 @@ public class GridConnector extends AbstractListingConnector | |||
* Method called by {@code CustomColumn} when its renderer changes. This | |||
* method is used to maintain hierarchical renderer wrap in | |||
* {@code TreeGrid}. | |||
* | |||
* | |||
* @param column | |||
* the column which now has a new renderer | |||
* | |||
* | |||
* @since 8.1 | |||
*/ | |||
public void onColumnRendererChanged(CustomColumn column) { |
@@ -44,7 +44,7 @@ public class DebugButton extends Button { | |||
public DebugButton(String caption) { | |||
this(null, null, caption); | |||
} | |||
public DebugButton(String caption, String title) { | |||
this(null, title, caption); | |||
} |
@@ -165,26 +165,26 @@ public class ResponsiveConnector extends AbstractExtensionConnector | |||
*/ | |||
private static native void searchForBreakPointsNative() | |||
/*-{ | |||
// Initialize variables | |||
@com.vaadin.client.extensions.ResponsiveConnector::widthRangeCache = []; | |||
@com.vaadin.client.extensions.ResponsiveConnector::heightRangeCache = []; | |||
var widthRanges = @com.vaadin.client.extensions.ResponsiveConnector::widthRangeCache; | |||
var heightRanges = @com.vaadin.client.extensions.ResponsiveConnector::heightRangeCache; | |||
// Can't do squat if we can't parse stylesheets | |||
if (!$doc.styleSheets) | |||
return; | |||
var sheets = $doc.styleSheets; | |||
// Loop all stylesheets on the page and process them individually | |||
for (var i = 0, len = sheets.length; i < len; i++) { | |||
var sheet = sheets[i]; | |||
@com.vaadin.client.extensions.ResponsiveConnector::searchStylesheetForBreakPoints(Lcom/google/gwt/core/client/JavaScriptObject;)(sheet); | |||
} | |||
}-*/; | |||
/** | |||
@@ -197,15 +197,15 @@ public class ResponsiveConnector extends AbstractExtensionConnector | |||
private static native void searchStylesheetForBreakPoints( | |||
final JavaScriptObject sheet) | |||
/*-{ | |||
// Inline variables for easier reading | |||
var widthRanges = @com.vaadin.client.extensions.ResponsiveConnector::widthRangeCache; | |||
var heightRanges = @com.vaadin.client.extensions.ResponsiveConnector::heightRangeCache; | |||
// Get all the rulesets from the stylesheet | |||
var theRules = new Array(); | |||
var IEOrEdge = @com.vaadin.client.BrowserInfo::get()().@com.vaadin.client.BrowserInfo::isIE()() || @com.vaadin.client.BrowserInfo::get()().@com.vaadin.client.BrowserInfo::isEdge()(); | |||
try { | |||
if (sheet.cssRules) { | |||
theRules = sheet.cssRules | |||
@@ -218,18 +218,18 @@ public class ResponsiveConnector extends AbstractExtensionConnector | |||
", probably because of cross domain issues: " + e); | |||
return; | |||
} | |||
// Loop through the rulesets | |||
for (var i = 0, len = theRules.length; i < len; i++) { | |||
var rule = theRules[i]; | |||
if (rule.type == 3) { | |||
// @import rule, traverse recursively | |||
@com.vaadin.client.extensions.ResponsiveConnector::searchStylesheetForBreakPoints(Lcom/google/gwt/core/client/JavaScriptObject;)(rule.styleSheet); | |||
} else if (rule.type == 1 || !rule.type) { | |||
// Regular selector rule | |||
// Helper function | |||
var pushToCache = function(ranges, selector, min, max) { | |||
// Avoid adding duplicates | |||
@@ -245,46 +245,46 @@ public class ResponsiveConnector extends AbstractExtensionConnector | |||
ranges.push([selector, min, max]); | |||
} | |||
}; | |||
// Array of all of the separate selectors in this ruleset | |||
var haystack = rule.selectorText.split(","); | |||
// IE/Edge parses CSS like .class[attr="val"] into [attr="val"].class so we need to check for both | |||
var selectorRegEx = IEOrEdge ? /\[.*\]([\.|#]\S+)/ : /([\.|#]\S+?)\[.*\]/; | |||
// Loop all the selectors in this ruleset | |||
for (var k = 0, len2 = haystack.length; k < len2; k++) { | |||
// Split the haystack into parts. | |||
var widthRange = haystack[k].match(/\[width-range.*?\]/); | |||
var heightRange = haystack[k].match(/\[height-range.*?\]/); | |||
var selector = haystack[k].match(selectorRegEx); | |||
if (selector != null) { | |||
selector = selector[1]; | |||
// Check for width-ranges. | |||
if (widthRange != null) { | |||
var minMax = widthRange[0].match(/\[width-range~?=["|'](.*?)-(.*?)["|']\]/i); | |||
var min = minMax[1]; | |||
var max = minMax[2]; | |||
pushToCache(widthRanges, selector, min, max); | |||
} | |||
// Check for height-ranges. | |||
if (heightRange != null) { | |||
var minMax = heightRange[0].match(/\[height-range~?=["|'](.*?)-(.*?)["|']\]/i); | |||
var min = minMax[1]; | |||
var max = minMax[2]; | |||
pushToCache(heightRanges, selector, min, max); | |||
} | |||
} | |||
} | |||
} | |||
} | |||
}-*/; | |||
/** | |||
@@ -294,15 +294,15 @@ public class ResponsiveConnector extends AbstractExtensionConnector | |||
*/ | |||
private native void getBreakPointsFor(final String selectors) | |||
/*-{ | |||
var selectors = selectors.split(","); | |||
var widthBreakpoints = this.@com.vaadin.client.extensions.ResponsiveConnector::widthBreakpoints = []; | |||
var heightBreakpoints = this.@com.vaadin.client.extensions.ResponsiveConnector::heightBreakpoints = []; | |||
var widthRanges = @com.vaadin.client.extensions.ResponsiveConnector::widthRangeCache; | |||
var heightRanges = @com.vaadin.client.extensions.ResponsiveConnector::heightRangeCache; | |||
for (var i = 0, len = widthRanges.length; i < len; i++) { | |||
var bp = widthRanges[i]; | |||
for (var j = 0, len2 = selectors.length; j < len2; j++) { | |||
@@ -310,7 +310,7 @@ public class ResponsiveConnector extends AbstractExtensionConnector | |||
widthBreakpoints.push(bp); | |||
} | |||
} | |||
for (var i = 0, len = heightRanges.length; i < len; i++) { | |||
var bp = heightRanges[i]; | |||
for (var j = 0, len2 = selectors.length; j < len2; j++) { | |||
@@ -318,10 +318,10 @@ public class ResponsiveConnector extends AbstractExtensionConnector | |||
heightBreakpoints.push(bp); | |||
} | |||
} | |||
// Only for debugging | |||
// console.log("Breakpoints for", selectors.join(","), widthBreakpoints, heightBreakpoints); | |||
}-*/; | |||
private String currentWidthRanges = ""; | |||
@@ -376,24 +376,24 @@ public class ResponsiveConnector extends AbstractExtensionConnector | |||
private native String resolveBreakpoint(String which, int size) | |||
/*-{ | |||
// Default to "width" breakpoints | |||
var breakpoints = this.@com.vaadin.client.extensions.ResponsiveConnector::widthBreakpoints; | |||
// Use height breakpoints if we're measuring the height | |||
if (which == "height") | |||
breakpoints = this.@com.vaadin.client.extensions.ResponsiveConnector::heightBreakpoints; | |||
// Output string that goes into either the "width-range" or "height-range" attribute in the element | |||
var ranges = ""; | |||
// Loop the breakpoints | |||
for (var i = 0, len = breakpoints.length; i < len; i++) { | |||
var bp = breakpoints[i]; | |||
var min = parseInt(bp[1]); | |||
var max = parseInt(bp[2]); | |||
if (!isNaN(min) && !isNaN(max)) { | |||
if (min <= size && size <= max) { | |||
ranges += " " + bp[1] + "-" + bp[2]; | |||
@@ -408,10 +408,10 @@ public class ResponsiveConnector extends AbstractExtensionConnector | |||
} | |||
} | |||
} | |||
// Trim the output and return it | |||
return ranges.replace(/^\s+/, ""); | |||
}-*/; | |||
} |
@@ -71,7 +71,7 @@ public class JavaScriptManagerConnector extends AbstractExtensionConnector { | |||
var m = this; | |||
var target = $wnd; | |||
var parts = name.split('.'); | |||
for (var i = 0; i < parts.length - 1; i++) { | |||
var part = parts[i]; | |||
if (target[part] === undefined) { | |||
@@ -79,7 +79,7 @@ public class JavaScriptManagerConnector extends AbstractExtensionConnector { | |||
} | |||
target = target[part]; | |||
} | |||
target[parts[parts.length - 1]] = $entry(function() { | |||
//Must make a copy because arguments is an array-like object (not instanceof Array), causing suboptimal JSON encoding | |||
var args = Array.prototype.slice.call(arguments, 0); | |||
@@ -94,7 +94,7 @@ public class JavaScriptManagerConnector extends AbstractExtensionConnector { | |||
/*-{ | |||
var target = $wnd; | |||
var parts = name.split('.'); | |||
for (var i = 0; i < parts.length - 1; i++) { | |||
var part = parts[i]; | |||
if (target[part] === undefined) { | |||
@@ -104,7 +104,7 @@ public class JavaScriptManagerConnector extends AbstractExtensionConnector { | |||
} | |||
target = target[part]; | |||
} | |||
$wnd.console.log('removing',parts[parts.length - 1],'from',target); | |||
delete target[parts[parts.length - 1]]; | |||
}-*/; |
@@ -20,7 +20,7 @@ import com.vaadin.client.ui.textfield.AbstractTextFieldConnector; | |||
/** | |||
* Implemented by all widgets used by a connector extending | |||
* {@link AbstractTextFieldConnector}. | |||
* | |||
* | |||
* @since 8.0 | |||
*/ | |||
public interface AbstractTextFieldWidget { |
@@ -19,7 +19,7 @@ import com.vaadin.client.ComponentConnector; | |||
/** | |||
* Implemented by connectors supporting an error indicator. | |||
* | |||
* | |||
* @since 8.0 | |||
*/ | |||
public interface HasErrorIndicator extends ComponentConnector { |
@@ -19,7 +19,7 @@ import com.vaadin.client.ComponentConnector; | |||
/** | |||
* Implemented by connectors supporting a required flag. | |||
* | |||
* | |||
* @since 8.0 | |||
*/ | |||
public interface HasRequiredIndicator extends ComponentConnector { |
@@ -31,7 +31,7 @@ public class JavaScriptWidget extends Widget { | |||
/** | |||
* Creates a JavaScriptWidget based on an element with the given tag. | |||
* | |||
* | |||
* @param tagName | |||
* the tag to use for the element | |||
*/ |
@@ -221,7 +221,7 @@ public abstract class VAbstractPopupCalendar<PANEL extends VAbstractCalendarPane | |||
* Changes the current date, and updates the | |||
* {@link VDateField#bufferedResolutions}, possibly | |||
* {@link VDateField#sendBufferedValues()} to the server if needed | |||
* | |||
* | |||
* @param newDate | |||
* the new {@code Date} to update | |||
*/ |
@@ -58,7 +58,7 @@ public abstract class VDateField<R extends Enum<R>> extends FlowPanel | |||
/** | |||
* The RPC send calls to the server. | |||
* | |||
* | |||
* @since | |||
*/ | |||
public AbstractDateFieldServerRpc rpc; | |||
@@ -66,11 +66,11 @@ public abstract class VDateField<R extends Enum<R>> extends FlowPanel | |||
/** | |||
* A temporary holder of the time units (resolutions), which would be sent | |||
* to the server through {@link #sendBufferedValues()}. | |||
* | |||
* | |||
* The key is the resolution. | |||
* | |||
* | |||
* The value can be {@code null}. | |||
* | |||
* | |||
* @since | |||
*/ | |||
protected Map<R, Integer> bufferedResolutions = new HashMap<>(); | |||
@@ -78,7 +78,7 @@ public abstract class VDateField<R extends Enum<R>> extends FlowPanel | |||
/** | |||
* A temporary holder of the date string, which would be sent to the server | |||
* through {@link #sendBufferedValues()}. | |||
* | |||
* | |||
* @since | |||
*/ | |||
protected String bufferedDateString; | |||
@@ -264,7 +264,7 @@ public abstract class VDateField<R extends Enum<R>> extends FlowPanel | |||
/** | |||
* Sends the {@link #bufferedDateString} and {@link #bufferedResolutions} to | |||
* the server, and clears their values. | |||
* | |||
* | |||
* @since | |||
*/ | |||
public void sendBufferedValues() { |
@@ -53,7 +53,7 @@ public class VDragAndDropWrapperIE extends VDragAndDropWrapper { | |||
com.google.gwt.user.client.Element el) | |||
/*-{ | |||
var me = this; | |||
el.attachEvent("ondragstart", $entry(function(ev) { | |||
return me.@com.vaadin.client.ui.VDragAndDropWrapper::html5DragStart(Lcom/vaadin/client/ui/dd/VHtml5DragEvent;)(ev); | |||
})); | |||
@@ -69,19 +69,19 @@ public class VDragAndDropWrapperIE extends VDragAndDropWrapper { | |||
protected native void hookHtml5Events(com.google.gwt.user.client.Element el) | |||
/*-{ | |||
var me = this; | |||
el.attachEvent("ondragenter", $entry(function(ev) { | |||
return me.@com.vaadin.client.ui.VDragAndDropWrapper::html5DragEnter(Lcom/vaadin/client/ui/dd/VHtml5DragEvent;)(ev); | |||
})); | |||
el.attachEvent("ondragleave", $entry(function(ev) { | |||
return me.@com.vaadin.client.ui.VDragAndDropWrapper::html5DragLeave(Lcom/vaadin/client/ui/dd/VHtml5DragEvent;)(ev); | |||
})); | |||
el.attachEvent("ondragover", $entry(function(ev) { | |||
return me.@com.vaadin.client.ui.VDragAndDropWrapper::html5DragOver(Lcom/vaadin/client/ui/dd/VHtml5DragEvent;)(ev); | |||
})); | |||
el.attachEvent("ondrop", $entry(function(ev) { | |||
return me.@com.vaadin.client.ui.VDragAndDropWrapper::html5DragDrop(Lcom/vaadin/client/ui/dd/VHtml5DragEvent;)(ev); | |||
})); |
@@ -48,7 +48,7 @@ public class VVideo extends VMediaBase { | |||
el.addEventListener('loadedmetadata', $entry(function(e) { | |||
self.@com.vaadin.client.ui.VVideo::updateElementDynamicSize(II)(el.videoWidth, el.videoHeight); | |||
}), false); | |||
}-*/; | |||
/** |
@@ -62,7 +62,7 @@ public abstract class AbstractDateFieldConnector<R extends Enum<R>> | |||
/** | |||
* Returns the default date (when no date is selected) components as a map | |||
* from Resolution to the corresponding value. | |||
* | |||
* | |||
* @return default date component map | |||
* @since | |||
*/ |
@@ -28,7 +28,7 @@ import com.vaadin.ui.AbstractLocalDateTimeField; | |||
/** | |||
* The client-side connector for AbstractLocalDateTimeField. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* @since 8.0 | |||
*/ |
@@ -23,7 +23,7 @@ import com.vaadin.ui.InlineDateField; | |||
/** | |||
* The client-side connector for InlineDateField. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* @since 8.0 | |||
*/ |
@@ -27,7 +27,7 @@ import com.vaadin.ui.InlineDateTimeField; | |||
/** | |||
* The client-side connector for InlineDateTimeField. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* @since 8.0 | |||
*/ |
@@ -21,7 +21,7 @@ import com.vaadin.ui.DateField; | |||
/** | |||
* The client-side connector for DateField. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* @since 8.0 | |||
*/ |
@@ -21,7 +21,7 @@ import com.vaadin.ui.DateTimeField; | |||
/** | |||
* The client-side connector for DateTimeField. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* @since 8.0 | |||
* |
@@ -33,9 +33,9 @@ import com.vaadin.shared.ui.datefield.TextualDateFieldState; | |||
* Abstract date/time field connector which extend | |||
* {@link AbstractTextualDateConnector} functionality with widget that shows | |||
* date/time chooser as a popup panel. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* | |||
* | |||
* @since 8.0 | |||
* | |||
* @param <PANEL> | |||
@@ -101,7 +101,7 @@ public abstract class TextualDateConnector<PANEL extends VAbstractCalendarPanel< | |||
/** | |||
* Returns {@code true} is the current resolution of the widget is month or | |||
* less specific (e.g. month, year, quarter, etc). | |||
* | |||
* | |||
* @return {@code true} if the current resolution is above month | |||
*/ | |||
protected abstract boolean isResolutionMonthOrHigher(); |
@@ -20,7 +20,7 @@ import com.vaadin.ui.dnd.DropTargetExtension; | |||
/** | |||
* A class via all AcceptCriteria instances are fetched by an identifier. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* @deprecated Replaced in 8.1 with | |||
* {@link DropTargetExtension#setDropCriteria(String)} |
@@ -173,7 +173,7 @@ public class VDragEvent { | |||
/** | |||
* Returns the details of the drag and drop operation. | |||
* | |||
* | |||
* TODO consider using similar smaller (than map) API as in Transferable | |||
* | |||
* TODO clean up when drop handler changes |
@@ -101,15 +101,15 @@ public class VHtml5DragEvent extends NativeEvent { | |||
} | |||
} | |||
} | |||
// Zero sized files without a type are also likely to be folders | |||
var file = this.dataTransfer.files[fileIndex]; | |||
if (file.size == 0 && !file.type) { | |||
return false; | |||
} | |||
// TODO Make it detect folders on all browsers | |||
return true; | |||
}-*/; | |||
@@ -23,7 +23,7 @@ import com.vaadin.shared.ui.ValueChangeMode; | |||
/** | |||
* Helper for dealing with scheduling value change events based on a given mode | |||
* and possibly timeout. | |||
* | |||
* | |||
* @since 8.0 | |||
*/ | |||
public class ValueChangeHandler { |
@@ -729,13 +729,13 @@ public class Escalator extends Widget | |||
/*-{ | |||
var vScroll = esc.@com.vaadin.client.widgets.Escalator::verticalScrollbar; | |||
var vScrollElem = vScroll.@com.vaadin.client.widget.escalator.ScrollbarBundle::getElement()(); | |||
var hScroll = esc.@com.vaadin.client.widgets.Escalator::horizontalScrollbar; | |||
var hScrollElem = hScroll.@com.vaadin.client.widget.escalator.ScrollbarBundle::getElement()(); | |||
return $entry(function(e) { | |||
var target = e.target; | |||
// in case the scroll event was native (i.e. scrollbars were dragged, or | |||
// the scrollTop/Left was manually modified), the bundles have old cache | |||
// values. We need to make sure that the caches are kept up to date. | |||
@@ -756,29 +756,29 @@ public class Escalator extends Widget | |||
return $entry(function(e) { | |||
var deltaX = e.deltaX ? e.deltaX : -0.5*e.wheelDeltaX; | |||
var deltaY = e.deltaY ? e.deltaY : -0.5*e.wheelDeltaY; | |||
// Delta mode 0 is in pixels; we don't need to do anything... | |||
// A delta mode of 1 means we're scrolling by lines instead of pixels | |||
// We need to scale the number of lines by the default line height | |||
if (e.deltaMode === 1) { | |||
var brc = esc.@com.vaadin.client.widgets.Escalator::body; | |||
deltaY *= brc.@com.vaadin.client.widgets.Escalator.AbstractRowContainer::getDefaultRowHeight()(); | |||
} | |||
// Other delta modes aren't supported | |||
if ((e.deltaMode !== undefined) && (e.deltaMode >= 2 || e.deltaMode < 0)) { | |||
var msg = "Unsupported wheel delta mode \"" + e.deltaMode + "\""; | |||
// Print warning message | |||
esc.@com.vaadin.client.widgets.Escalator::logWarning(*)(msg); | |||
} | |||
// IE8 has only delta y | |||
if (isNaN(deltaY)) { | |||
deltaY = -0.5*e.wheelDelta; | |||
} | |||
@com.vaadin.client.widgets.Escalator.JsniUtil::moveScrollFromEvent(*)(esc, deltaX, deltaY, e); | |||
}); | |||
}-*/; |
@@ -65,7 +65,7 @@ public class JavaScriptRendererConnector | |||
private static native JavaScriptObject createCellReferenceWrapper() | |||
/*-{ | |||
var reference = {}; | |||
var setProperty = function(name, getter, setter) { | |||
var descriptor = { | |||
get: getter | |||
@@ -75,25 +75,25 @@ public class JavaScriptRendererConnector | |||
} | |||
Object.defineProperty(reference, name, descriptor); | |||
}; | |||
setProperty("element", function() { | |||
return reference.target.@CellReference::getElement()(); | |||
}, null); | |||
setProperty("rowIndex", function() { | |||
return reference.target.@CellReference::getRowIndex()(); | |||
}, null); | |||
setProperty("columnIndex", function() { | |||
return reference.target.@CellReference::getColumnIndex()(); | |||
}, null); | |||
setProperty("colSpan", function() { | |||
return reference.target.@RendererCellReference::getColSpan()(); | |||
}, function(colSpan) { | |||
reference.target.@RendererCellReference::setColSpan(*)(colSpan); | |||
}); | |||
return reference; | |||
}-*/; | |||
@@ -48,7 +48,7 @@ public abstract class AbstractFieldConnector | |||
* <p> | |||
* NOTE: since 8.0 this only delegates to | |||
* {@link #isRequiredIndicatorVisible()}, and is left for legacy reasons. | |||
* | |||
* | |||
* @deprecated Use {@link #isRequiredIndicatorVisible()} instead. | |||
* | |||
* @return true if required indicator should be shown |
@@ -368,7 +368,7 @@ public class VCalendar extends Composite implements VHasDropHandler { | |||
e.onselectstart = function() { | |||
return false; | |||
} | |||
e.ondragstart = function() { | |||
return false; | |||
} | |||
@@ -1127,7 +1127,7 @@ public class VCalendar extends Composite implements VHasDropHandler { | |||
/** | |||
* Get the first hour of the day. | |||
* | |||
* | |||
* @return The first hour of the day | |||
*/ | |||
public int getFirstHourOfTheDay() { |
@@ -257,12 +257,12 @@ public class VFilterSelect extends Composite | |||
return $entry(function(e) { | |||
var deltaX = e.deltaX ? e.deltaX : -0.5*e.wheelDeltaX; | |||
var deltaY = e.deltaY ? e.deltaY : -0.5*e.wheelDeltaY; | |||
// IE8 has only delta y | |||
if (isNaN(deltaY)) { | |||
deltaY = -0.5*e.wheelDelta; | |||
} | |||
@com.vaadin.v7.client.ui.VFilterSelect.JsniUtil::moveScrollFromEvent(*)(widget, deltaX, deltaY, e, e.deltaMode); | |||
}); | |||
}-*/; |
@@ -1,12 +1,12 @@ | |||
/* | |||
* Copyright 2000-2016 Vaadin Ltd. | |||
* | |||
* | |||
* 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 |
@@ -534,7 +534,7 @@ public class VTextField extends TextBoxBase implements Field, ChangeHandler, | |||
/** | |||
* {@inheritDoc} | |||
* | |||
* | |||
* @since 7.7.5 | |||
*/ | |||
@Override |
@@ -87,7 +87,7 @@ public class EventCellReference<T> extends CellReference<T> { | |||
* Is the cell reference for a cell in the header of the Grid. | |||
* | |||
* @since 7.5 | |||
* @return <code>true</code> if referenced cell is in the header, | |||
* @return <code>true</code> if referenced cell is in the header, | |||
* <code>false</code> if not | |||
*/ | |||
public boolean isHeader() { | |||
@@ -98,7 +98,7 @@ public class EventCellReference<T> extends CellReference<T> { | |||
* Is the cell reference for a cell in the body of the Grid. | |||
* | |||
* @since 7.5 | |||
* @return <code>true</code> if referenced cell is in the body, | |||
* @return <code>true</code> if referenced cell is in the body, | |||
* <code>false</code> if not | |||
*/ | |||
public boolean isBody() { | |||
@@ -109,7 +109,7 @@ public class EventCellReference<T> extends CellReference<T> { | |||
* Is the cell reference for a cell in the footer of the Grid. | |||
* | |||
* @since 7.5 | |||
* @return <code>true</code> if referenced cell is in the footer, | |||
* @return <code>true</code> if referenced cell is in the footer, | |||
* <code>false</code> if not | |||
*/ | |||
public boolean isFooter() { |
@@ -703,13 +703,13 @@ public class Escalator extends Widget | |||
/*-{ | |||
var vScroll = esc.@com.vaadin.v7.client.widgets.Escalator::verticalScrollbar; | |||
var vScrollElem = vScroll.@com.vaadin.v7.client.widget.escalator.ScrollbarBundle::getElement()(); | |||
var hScroll = esc.@com.vaadin.v7.client.widgets.Escalator::horizontalScrollbar; | |||
var hScrollElem = hScroll.@com.vaadin.v7.client.widget.escalator.ScrollbarBundle::getElement()(); | |||
return $entry(function(e) { | |||
var target = e.target; | |||
// in case the scroll event was native (i.e. scrollbars were dragged, or | |||
// the scrollTop/Left was manually modified), the bundles have old cache | |||
// values. We need to make sure that the caches are kept up to date. | |||
@@ -730,29 +730,29 @@ public class Escalator extends Widget | |||
return $entry(function(e) { | |||
var deltaX = e.deltaX ? e.deltaX : -0.5*e.wheelDeltaX; | |||
var deltaY = e.deltaY ? e.deltaY : -0.5*e.wheelDeltaY; | |||
// Delta mode 0 is in pixels; we don't need to do anything... | |||
// A delta mode of 1 means we're scrolling by lines instead of pixels | |||
// We need to scale the number of lines by the default line height | |||
if (e.deltaMode === 1) { | |||
var brc = esc.@com.vaadin.v7.client.widgets.Escalator::body; | |||
deltaY *= brc.@com.vaadin.v7.client.widgets.Escalator.AbstractRowContainer::getDefaultRowHeight()(); | |||
} | |||
// Other delta modes aren't supported | |||
if ((e.deltaMode !== undefined) && (e.deltaMode >= 2 || e.deltaMode < 0)) { | |||
var msg = "Unsupported wheel delta mode \"" + e.deltaMode + "\""; | |||
// Print warning message | |||
esc.@com.vaadin.v7.client.widgets.Escalator::logWarning(*)(msg); | |||
} | |||
// IE8 has only delta y | |||
if (isNaN(deltaY)) { | |||
deltaY = -0.5*e.wheelDelta; | |||
} | |||
@com.vaadin.v7.client.widgets.Escalator.JsniUtil::moveScrollFromEvent(*)(esc, deltaX, deltaY, e); | |||
}); | |||
}-*/; |
@@ -29,7 +29,7 @@ import com.vaadin.v7.data.util.converter.Converter.ConversionException; | |||
* | |||
* Note that depending on the QueryDelegate in use this does not necessarily map | |||
* into an actual column in a database table. | |||
* | |||
* | |||
* @deprecated As of 8.0, no replacement available. | |||
*/ | |||
@Deprecated |
@@ -1,12 +1,12 @@ | |||
/* | |||
* Copyright 2000-2016 Vaadin Ltd. | |||
* | |||
* | |||
* 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 | |||
@@ -22,7 +22,7 @@ import com.vaadin.v7.shared.ui.colorpicker.Color; | |||
/** | |||
* The color changed event which is passed to the listeners when a color change | |||
* occurs. | |||
* | |||
* | |||
* @since 7.0.0 | |||
*/ | |||
@Deprecated |
@@ -1,12 +1,12 @@ | |||
/* | |||
* Copyright 2000-2016 Vaadin Ltd. | |||
* | |||
* | |||
* 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 | |||
@@ -24,9 +24,9 @@ import java.io.Serializable; | |||
* component using the component's <code>addColorChangeListener</code> method. | |||
* When the colorChange event occurs, that object's appropriate method is | |||
* invoked. | |||
* | |||
* | |||
* @since 7.0.0 | |||
* | |||
* | |||
* @see ColorChangeEvent | |||
*/ | |||
@Deprecated | |||
@@ -34,7 +34,7 @@ public interface ColorChangeListener extends Serializable { | |||
/** | |||
* Called when a new color has been selected. | |||
* | |||
* | |||
* @param event | |||
* An event containing information about the color change. | |||
*/ |
@@ -1,12 +1,12 @@ | |||
/* | |||
* Copyright 2000-2016 Vaadin Ltd. | |||
* | |||
* | |||
* 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 | |||
@@ -25,7 +25,7 @@ import com.vaadin.v7.ui.AbstractColorPicker.Coordinates2Color; | |||
/** | |||
* A component that represents a color gradient within a color picker. | |||
* | |||
* | |||
* @since 7.0.0 | |||
*/ | |||
@Deprecated | |||
@@ -78,7 +78,7 @@ public class ColorPickerGradient extends AbstractComponent | |||
/** | |||
* Instantiates a new color picker gradient. | |||
* | |||
* | |||
* @param id | |||
* the id | |||
* @param converter | |||
@@ -115,7 +115,7 @@ public class ColorPickerGradient extends AbstractComponent | |||
/** | |||
* Sets the background color. | |||
* | |||
* | |||
* @param color | |||
* the new background color | |||
*/ | |||
@@ -130,7 +130,7 @@ public class ColorPickerGradient extends AbstractComponent | |||
/** | |||
* Notifies the listeners that the color has changed. | |||
* | |||
* | |||
* @param color | |||
* The color which it changed to | |||
*/ |
@@ -1,12 +1,12 @@ | |||
/* | |||
* Copyright 2000-2016 Vaadin Ltd. | |||
* | |||
* | |||
* 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 | |||
@@ -21,7 +21,7 @@ import com.vaadin.v7.shared.ui.colorpicker.Color; | |||
/** | |||
* An interface for a color selector. | |||
* | |||
* | |||
* @since 7.0.0 | |||
*/ | |||
@Deprecated | |||
@@ -29,7 +29,7 @@ public interface ColorSelector extends Serializable, HasColorChangeListener { | |||
/** | |||
* Sets the color. | |||
* | |||
* | |||
* @param color | |||
* the new color | |||
*/ | |||
@@ -37,7 +37,7 @@ public interface ColorSelector extends Serializable, HasColorChangeListener { | |||
/** | |||
* Gets the color. | |||
* | |||
* | |||
* @return the color | |||
*/ | |||
public Color getColor(); |
@@ -1,12 +1,12 @@ | |||
/* | |||
* Copyright 2000-2016 Vaadin Ltd. | |||
* | |||
* | |||
* 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 | |||
@@ -22,14 +22,14 @@ public interface HasColorChangeListener extends Serializable { | |||
/** | |||
* Adds a {@link ColorChangeListener} to the component. | |||
* | |||
* | |||
* @param listener | |||
*/ | |||
void addColorChangeListener(ColorChangeListener listener); | |||
/** | |||
* Removes a {@link ColorChangeListener} from the component. | |||
* | |||
* | |||
* @param listener | |||
*/ | |||
void removeColorChangeListener(ColorChangeListener listener); |
@@ -1,12 +1,12 @@ | |||
/* | |||
* Copyright 2000-2014 Vaadin Ltd. | |||
* | |||
* | |||
* 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 | |||
@@ -23,7 +23,7 @@ import com.vaadin.ui.Slider; | |||
/** | |||
* Tests declarative support for implementations of {@link Slider}. | |||
* | |||
* | |||
* @since | |||
* @author Vaadin Ltd | |||
*/ |
@@ -46,7 +46,7 @@ public class OptionGroupDeclarativeTest | |||
og.addItems("foo", "bar", "baz", "bang"); | |||
//@formatter:off | |||
String expected = | |||
String expected = | |||
"<vaadin7-option-group>" | |||
+ "<option>foo</option>" | |||
+ "<option>bar</option>" | |||
@@ -66,7 +66,7 @@ public class OptionGroupDeclarativeTest | |||
og.setItemEnabled("baz", false); | |||
//@formatter:off | |||
String expected = | |||
String expected = | |||
"<vaadin7-option-group>" | |||
+ "<option>foo</option>" | |||
+ "<option>bar</option>" | |||
@@ -86,7 +86,7 @@ public class OptionGroupDeclarativeTest | |||
og.setItemIcon("bar", new ThemeResource("foobar.png")); | |||
//@formatter:off | |||
String expected = | |||
String expected = | |||
"<vaadin7-option-group>" | |||
+ "<option>foo</option>" | |||
+ "<option icon='theme://foobar.png'>bar</option>" | |||
@@ -110,7 +110,7 @@ public class OptionGroupDeclarativeTest | |||
og.setItemCaption("bar", "<font color='red'>False</font>"); | |||
//@formatter:off | |||
String expected = | |||
String expected = | |||
"<vaadin7-option-group html-content-allowed>" | |||
+ "<option item-id=\"foo\"><b>True</b></option>" | |||
+ "<option item-id=\"bar\"><font color='red'>False</font></option>" |
@@ -1,12 +1,12 @@ | |||
/* | |||
* Copyright 2000-2014 Vaadin Ltd. | |||
* | |||
* | |||
* 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 | |||
@@ -25,7 +25,7 @@ import com.vaadin.v7.ui.TextField; | |||
/** | |||
* Test for {@link Form}. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
*/ | |||
public class FormTest { |
@@ -42,7 +42,7 @@ public class AbstractFieldState extends AbstractLegacyComponentState { | |||
* <p> | |||
* This is not used in all fields, but needs to be here for the time being | |||
* (#20468). | |||
* | |||
* | |||
* @since 7.7.5 | |||
*/ | |||
public Connector focusDelegate; |
@@ -1,12 +1,12 @@ | |||
/* | |||
* Copyright 2000-2016 Vaadin Ltd. | |||
* | |||
* | |||
* 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 |
@@ -59,7 +59,7 @@ public class CalendarState extends AbstractLegacyComponentState { | |||
* (later event are shown first). | |||
* <li>{@code DURATION_ASC} means ascending sort by duration (shorter event | |||
* are shown first). | |||
* | |||
* | |||
* </ul> | |||
*/ | |||
public enum EventSortOrder { |
@@ -330,7 +330,7 @@ public class Binder<BEAN> implements Serializable { | |||
* @return this binding, for chaining | |||
* @throws IllegalStateException | |||
* if {@code bind} has already been called | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public default BindingBuilder<BEAN, TARGET> withValidator( | |||
@@ -394,7 +394,7 @@ public class Binder<BEAN> implements Serializable { | |||
* @return this binding, for chaining | |||
* @throws IllegalStateException | |||
* if {@code bind} has already been called | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public default BindingBuilder<BEAN, TARGET> withValidator( |
@@ -189,9 +189,9 @@ public class BinderValidationStatus<BEAN> implements Serializable { | |||
/** | |||
* Notifies all validation status handlers in bindings. | |||
* | |||
* | |||
* @see #notifyBindingValidationStatusHandlers(SerializablePredicate) | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public void notifyBindingValidationStatusHandlers() { | |||
@@ -203,12 +203,12 @@ public class BinderValidationStatus<BEAN> implements Serializable { | |||
* The filter should return {@code true} for each | |||
* {@link BindingValidationStatus} that should be delegated to the status | |||
* handler in the binding. | |||
* | |||
* | |||
* @see #notifyBindingValidationStatusHandlers() | |||
* | |||
* | |||
* @param filter | |||
* the filter to select bindings to run status handling for | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public void notifyBindingValidationStatusHandlers( |
@@ -137,7 +137,7 @@ public class BindingValidationStatus<TARGET> implements Serializable { | |||
* the related result object, may be {@code null} | |||
* @param source | |||
* field whose status has changed, not {@code null} | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public BindingValidationStatus(Result<TARGET> result, |
@@ -25,7 +25,7 @@ import com.vaadin.data.provider.DataProvider; | |||
* <p> | |||
* A listing component should implement either this interface or | |||
* {@link HasFilterableDataProvider}, but not both. | |||
* | |||
* | |||
* @author Vaadin Ltd. | |||
* | |||
* @param <T> |
@@ -26,10 +26,10 @@ import com.vaadin.server.SerializablePredicate; | |||
* This interface represents a predicate which returns {@code true} if bound | |||
* field should be configured to have required indicator via | |||
* {@link HasValue#setRequiredIndicatorVisible(boolean)}. | |||
* | |||
* | |||
* @see BeanValidationBinder | |||
* @see BeanValidationBinder#setRequiredConfigurator(RequiredFieldConfigurator) | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* @since 8.0 | |||
* |
@@ -26,7 +26,7 @@ import com.vaadin.server.SerializableFunction; | |||
* | |||
* @param <R> | |||
* the result value type | |||
* | |||
* | |||
* @since 8.0 | |||
*/ | |||
class SimpleResult<R> implements Result<R> { |
@@ -87,7 +87,7 @@ public interface ValidationResult extends Serializable { | |||
* | |||
* @return optional error level; error level is present for validation | |||
* results that have not passed validation | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
Optional<ErrorLevel> getErrorLevel(); | |||
@@ -136,7 +136,7 @@ public interface ValidationResult extends Serializable { | |||
* Creates the validation result with the given {@code errorMessage} and | |||
* {@code errorLevel}. Results with {@link ErrorLevel} of {@code INFO} or | |||
* {@code WARNING} are not errors by default. | |||
* | |||
* | |||
* @see #ok() | |||
* @see #error(String) | |||
* |
@@ -34,12 +34,12 @@ public interface HierarchicalDataProvider<T, F> extends DataProvider<T, F> { | |||
/** | |||
* Get the number of immediate child data items for the parent item returned | |||
* by a given query. | |||
* | |||
* | |||
* @param query | |||
* given query to request the count for | |||
* @return the count of child data items for the data item | |||
* {@link HierarchicalQuery#getParent()} | |||
* | |||
* | |||
* @throws IllegalArgumentException | |||
* if the query is not of type HierarchicalQuery | |||
*/ | |||
@@ -56,11 +56,11 @@ public interface HierarchicalDataProvider<T, F> extends DataProvider<T, F> { | |||
* Fetches data from this HierarchicalDataProvider using given | |||
* {@code query}. Only the immediate children of | |||
* {@link HierarchicalQuery#getParent()} will be returned. | |||
* | |||
* | |||
* @param query | |||
* given query to request data with | |||
* @return a stream of data objects resulting from the query | |||
* | |||
* | |||
* @throws IllegalArgumentException | |||
* if the query is not of type HierarchicalQuery | |||
*/ | |||
@@ -76,7 +76,7 @@ public interface HierarchicalDataProvider<T, F> extends DataProvider<T, F> { | |||
/** | |||
* Get the number of immediate child data items for the parent item returned | |||
* by a given query. | |||
* | |||
* | |||
* @param query | |||
* given query to request the count for | |||
* @return the count of child data items for the data item | |||
@@ -88,7 +88,7 @@ public interface HierarchicalDataProvider<T, F> extends DataProvider<T, F> { | |||
* Fetches data from this HierarchicalDataProvider using given | |||
* {@code query}. Only the immediate children of | |||
* {@link HierarchicalQuery#getParent()} will be returned. | |||
* | |||
* | |||
* @param query | |||
* given query to request data with | |||
* @return a stream of data objects resulting from the query | |||
@@ -97,7 +97,7 @@ public interface HierarchicalDataProvider<T, F> extends DataProvider<T, F> { | |||
/** | |||
* Check whether a given item has any children associated with it. | |||
* | |||
* | |||
* @param item | |||
* the item to check for children | |||
* @return whether the given item has children |
@@ -48,7 +48,7 @@ import elemental.json.JsonObject; | |||
* | |||
* @author Vaadin Ltd | |||
* @since 8.1 | |||
* | |||
* | |||
* @param <T> | |||
* the data type | |||
* @param <F> | |||
@@ -71,7 +71,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Constructs a new HierarchyMapper. | |||
* | |||
* | |||
* @param provider | |||
* the hierarchical data provider for this mapper | |||
*/ | |||
@@ -81,7 +81,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Returns the size of the currently expanded hierarchy. | |||
* | |||
* | |||
* @return the amount of available data | |||
*/ | |||
public int getTreeSize() { | |||
@@ -90,11 +90,11 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Finds the index of the parent of the item in given target index. | |||
* | |||
* | |||
* @param item | |||
* the item to get the parent of | |||
* @return the parent index or a negative value if the parent is not found | |||
* | |||
* | |||
*/ | |||
public Integer getParentIndex(T item) { | |||
// TODO: This can be optimized. | |||
@@ -104,7 +104,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Returns whether the given item is expanded. | |||
* | |||
* | |||
* @param item | |||
* the item to test | |||
* @return {@code true} if item is expanded; {@code false} if not | |||
@@ -119,7 +119,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Expands the given item. | |||
* | |||
* | |||
* @param item | |||
* the item to expand | |||
* @param position | |||
@@ -141,12 +141,12 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Collapses the given item. | |||
* | |||
* | |||
* @param item | |||
* the item to expand | |||
* @param position | |||
* the index of item | |||
* | |||
* | |||
* @return range of rows removed by collapsing the item | |||
*/ | |||
public Range doCollapse(T item, Optional<Integer> position) { | |||
@@ -196,7 +196,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Gets the current item collapse allowed provider. | |||
* | |||
* | |||
* @return the item collapse allowed provider | |||
*/ | |||
public ItemCollapseAllowedProvider<T> getItemCollapseAllowedProvider() { | |||
@@ -205,7 +205,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Sets the current item collapse allowed provider. | |||
* | |||
* | |||
* @param itemCollapseAllowedProvider | |||
* the item collapse allowed provider | |||
*/ | |||
@@ -216,7 +216,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Gets the current in-memory sorting. | |||
* | |||
* | |||
* @return the in-memory sorting | |||
*/ | |||
public Comparator<T> getInMemorySorting() { | |||
@@ -226,7 +226,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Sets the current in-memory sorting. This will cause the hierarchy to be | |||
* constructed again. | |||
* | |||
* | |||
* @param inMemorySorting | |||
* the in-memory sorting | |||
*/ | |||
@@ -236,7 +236,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Gets the current back-end sorting. | |||
* | |||
* | |||
* @return the back-end sorting | |||
*/ | |||
public List<QuerySortOrder> getBackEndSorting() { | |||
@@ -246,7 +246,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Sets the current back-end sorting. This will cause the hierarchy to be | |||
* constructed again. | |||
* | |||
* | |||
* @param backEndSorting | |||
* the back-end sorting | |||
*/ | |||
@@ -256,7 +256,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Gets the current filter. | |||
* | |||
* | |||
* @return the filter | |||
*/ | |||
public F getFilter() { | |||
@@ -266,7 +266,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Sets the current filter. This will cause the hierarchy to be constructed | |||
* again. | |||
* | |||
* | |||
* @param filter | |||
* the filter | |||
*/ | |||
@@ -277,7 +277,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Gets the {@code HierarchicalDataProvider} for this | |||
* {@code HierarchyMapper}. | |||
* | |||
* | |||
* @return the hierarchical data provider | |||
*/ | |||
public HierarchicalDataProvider<T, F> getDataProvider() { | |||
@@ -286,7 +286,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Returns whether given item has children. | |||
* | |||
* | |||
* @param item | |||
* the node to test | |||
* @return {@code true} if node has children; {@code false} if not | |||
@@ -300,7 +300,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Gets a stream of items in the form of a flattened hierarchy from the | |||
* back-end and filter the wanted results from the list. | |||
* | |||
* | |||
* @param range | |||
* the requested item range | |||
* @return the stream of items | |||
@@ -312,7 +312,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Gets a stream of children for the given item in the form of a flattened | |||
* hierarchy from the back-end and filter the wanted results from the list. | |||
* | |||
* | |||
* @param parent | |||
* the parent item for the fetch | |||
* @param range | |||
@@ -329,7 +329,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Generic method for finding direct children of a given parent, limited by | |||
* given range. | |||
* | |||
* | |||
* @param parent | |||
* the parent | |||
* @param range | |||
@@ -361,7 +361,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
* Removes all children of an item identified by a given id. Items removed | |||
* by this method as well as the original item are all marked to be | |||
* collapsed. | |||
* | |||
* | |||
* @param id | |||
* the item id | |||
*/ | |||
@@ -387,7 +387,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Finds the current index of given object. This is based on a search in | |||
* flattened version of the hierarchy. | |||
* | |||
* | |||
* @param target | |||
* the target object to find | |||
* @return optional index of given object | |||
@@ -405,7 +405,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Gets the full hierarchy tree starting from given node. | |||
* | |||
* | |||
* @param parent | |||
* the parent node to start from | |||
* @return the flattened hierarchy as a stream | |||
@@ -417,7 +417,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Getst hte full hierarchy tree starting from given node. The starting node | |||
* can be omitted. | |||
* | |||
* | |||
* @param parent | |||
* the parent node to start from | |||
* @param includeParent | |||
@@ -431,7 +431,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
/** | |||
* Gets the stream of direct children for given node. | |||
* | |||
* | |||
* @param parent | |||
* the parent node | |||
* @return the stream of direct children | |||
@@ -445,7 +445,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
* The method to recursively fetch the children of given parent. Used with | |||
* {@link Stream#flatMap} to expand a stream of parent nodes into a | |||
* flattened hierarchy. | |||
* | |||
* | |||
* @param parent | |||
* the parent node | |||
* @return the stream of all children under the parent, includes the parent | |||
@@ -458,7 +458,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
* The method to recursively fetch the children of given parent. Used with | |||
* {@link Stream#flatMap} to expand a stream of parent nodes into a | |||
* flattened hierarchy. | |||
* | |||
* | |||
* @param parent | |||
* the parent node | |||
* @param includeParent | |||
@@ -487,7 +487,7 @@ public class HierarchyMapper<T, F> implements DataGenerator<T> { | |||
* Helper method for combining parent and a stream of children into one | |||
* stream. {@code null} item is never included, and parent can be skipped by | |||
* providing the correct value for {@code includeParent}. | |||
* | |||
* | |||
* @param parent | |||
* the parent node | |||
* @param children |
@@ -601,11 +601,11 @@ public class Navigator implements Serializable { | |||
/** | |||
* Creates a navigation state manager for given UI. This method should take | |||
* into account any navigation related annotations. | |||
* | |||
* | |||
* @param ui | |||
* the ui | |||
* @return the navigation state manager | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
protected NavigationStateManager createNavigationStateManager(UI ui) { |
@@ -37,7 +37,7 @@ import com.vaadin.ui.UI; | |||
* {@link DeploymentConfiguration} parameter | |||
* {@link DeploymentConfiguration#isSendUrlsAsParameters() SendUrlAsParameters} | |||
* must not be set to {@code false}. | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
@Retention(RUNTIME) |
@@ -20,7 +20,7 @@ import java.io.Serializable; | |||
/** | |||
* Interface implemented by old Vaadin 7 exception types to produce the error | |||
* message to show in a component. | |||
* | |||
* | |||
* @since 8.0 | |||
*/ | |||
@Deprecated |
@@ -150,7 +150,7 @@ public abstract class AbstractDateField<T extends Temporal & TemporalAdjuster & | |||
/** | |||
* Default value of the field, displayed when nothing has been selected. | |||
* | |||
* | |||
* @since 8.1.2 | |||
*/ | |||
private T defaultValue; | |||
@@ -234,7 +234,7 @@ public abstract class AbstractDateField<T extends Temporal & TemporalAdjuster & | |||
* @param oldDate | |||
* used as a fallback to get needed values if they are not | |||
* defined in the specified {@code resolutions} | |||
* | |||
* | |||
* @return the date object built from the specified resolutions | |||
* @since | |||
*/ |
@@ -32,7 +32,7 @@ import com.vaadin.shared.ui.datefield.DateTimeResolution; | |||
/** | |||
* Abstract DateField class for {@link LocalDateTime} type. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* | |||
* @since 8.0 |
@@ -20,7 +20,7 @@ import com.vaadin.shared.ui.ValueChangeMode; | |||
/** | |||
* Implemented by components which support value change modes. | |||
* | |||
* | |||
* @since 8.0 | |||
*/ | |||
public interface HasValueChangeMode extends Component { |
@@ -522,7 +522,7 @@ public class Notification extends AbstractExtension implements Serializable { | |||
* CloseListener to a Notification and | |||
* {@link CloseListener#notificationClose(CloseEvent)} will be called | |||
* whenever the Notification is closed. | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
@FunctionalInterface |
@@ -68,7 +68,7 @@ public class TextField extends AbstractTextField { | |||
* Constructs a new {@code TextField} with a value change listener. The | |||
* listener is called when the value of this {@code TextField} is changed | |||
* either by the user or programmatically. | |||
* | |||
* | |||
* @param valueChangeListener | |||
* the value change listener, not {@code null} | |||
*/ | |||
@@ -100,7 +100,7 @@ public class TextField extends AbstractTextField { | |||
* <p> | |||
* The listener is called when the value of this {@code TextField} is | |||
* changed either by the user or programmatically. | |||
* | |||
* | |||
* @param caption | |||
* the caption {@code String} for the editor. | |||
* @param value |
@@ -1181,7 +1181,7 @@ public class Tree<T> extends Composite | |||
/** | |||
* Scrolls to the beginning of the first data row. | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public void scrollToStart() { | |||
@@ -1190,7 +1190,7 @@ public class Tree<T> extends Composite | |||
/** | |||
* Scrolls to the end of the last data row. | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public void scrollToEnd() { |
@@ -795,7 +795,7 @@ public abstract class UI extends AbstractSingleComponentContainer | |||
* | |||
* @return the part of path (from browser's URL) that points to this UI, | |||
* without possible view identifiers or path parameters | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public String getUiRootPath() { | |||
@@ -819,7 +819,7 @@ public abstract class UI extends AbstractSingleComponentContainer | |||
* | |||
* @return the path info part of the request; {@code null} if no request | |||
* from client has been processed | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public String getUiPathInfo() { |
@@ -170,7 +170,7 @@ public interface Editor<T> extends Serializable { | |||
/** | |||
* Adds an editor save {@code listener}. | |||
* | |||
* | |||
* @param listener | |||
* save listener | |||
* @return a registration object for removing the listener | |||
@@ -179,7 +179,7 @@ public interface Editor<T> extends Serializable { | |||
/** | |||
* Adds an editor cancel {@code listener}. | |||
* | |||
* | |||
* @param listener | |||
* cancel listener | |||
* @return a registration object for removing the listener | |||
@@ -188,18 +188,18 @@ public interface Editor<T> extends Serializable { | |||
/** | |||
* Adds an editor open {@code listener}. | |||
* | |||
* | |||
* @param listener | |||
* open listener | |||
* @return a registration object for removing the listener | |||
* | |||
* | |||
* @since 8.1 | |||
*/ | |||
public Registration addOpenListener(EditorOpenListener<T> listener); | |||
/** | |||
* Gets the Grid instance which this editor belongs to. | |||
* | |||
* | |||
* @return the grid which owns the editor | |||
*/ | |||
public Grid<T> getGrid(); |
@@ -21,13 +21,13 @@ import com.vaadin.ui.Grid; | |||
/** | |||
* An event listener for a {@link Grid} editor cancel events. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* @since 8.0 | |||
* | |||
* @see EditorCancelEvent | |||
* @see Editor#addCancelListener(EditorCancelListener) | |||
* | |||
* | |||
* @param <T> | |||
* the bean type | |||
*/ | |||
@@ -36,7 +36,7 @@ public interface EditorCancelListener<T> extends Serializable { | |||
/** | |||
* Called when the editor is cancelled. | |||
* | |||
* | |||
* @param event | |||
* cancel event | |||
*/ |
@@ -21,10 +21,10 @@ import com.vaadin.ui.Grid; | |||
/** | |||
* An event listener for a {@link Grid} editor save events. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* @since 8.1 | |||
* | |||
* | |||
* @param <T> | |||
* the bean type | |||
* | |||
@@ -36,7 +36,7 @@ public interface EditorOpenListener<T> extends Serializable { | |||
/** | |||
* Called when the editor is opened. | |||
* | |||
* | |||
* @param event | |||
* open event | |||
*/ |
@@ -21,7 +21,7 @@ import com.vaadin.ui.Grid; | |||
/** | |||
* An event listener for a {@link Grid} editor save events. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* @since 8.0 | |||
* | |||
@@ -33,7 +33,7 @@ public interface EditorSaveListener<T> extends Serializable { | |||
/** | |||
* Called when the editor is saved. | |||
* | |||
* | |||
* @param event | |||
* save event | |||
*/ |
@@ -61,7 +61,7 @@ public class GridDragSource<T> extends DragSourceExtension<Grid<T>> { | |||
/** | |||
* Default drag data generator for Grid. It creates a list of row values | |||
* separated by a tabulator character ({@code \t}). | |||
* | |||
* | |||
* <pre> | |||
* "column1_value\tcolumn2_value\t ... columnN_value" | |||
* </pre> | |||
@@ -163,7 +163,7 @@ public class GridDragSource<T> extends DragSourceExtension<Grid<T>> { | |||
* type} data. | |||
* <p> | |||
* Example, building a JSON object that contains the item's values: | |||
* | |||
* | |||
* <pre> | |||
* dragSourceExtension.setDragDataGenerator("application/json", item -> | |||
* { |
@@ -800,10 +800,10 @@ public abstract class StaticSection<ROW extends StaticSection.StaticRow<?>> | |||
/** | |||
* Sets the visibility of this section. | |||
* | |||
* | |||
* @param visible | |||
* {@code true} if visible; {@code false} if not | |||
* | |||
* | |||
* @since 8.1.1 | |||
*/ | |||
public void setVisible(boolean visible) { | |||
@@ -814,9 +814,9 @@ public abstract class StaticSection<ROW extends StaticSection.StaticRow<?>> | |||
/** | |||
* Gets the visibility of this section. | |||
* | |||
* | |||
* @return {@code true} if visible; {@code false} if not | |||
* | |||
* | |||
* @since 8.1.1 | |||
*/ | |||
public boolean isVisible() { |
@@ -38,7 +38,7 @@ import elemental.json.JsonValue; | |||
* instances. | |||
* <p> | |||
* Example of how to add a {@link Label} component to {@link Grid}: | |||
* | |||
* | |||
* <pre> | |||
* Grid<Person> grid; | |||
* grid.addColumn(person -> new Label(person.getFullName()), |
@@ -323,10 +323,10 @@ public class ReflectTools implements Serializable { | |||
/** | |||
* Returns the first non-synthetic method of the specified | |||
* {@code listenerClass}, which must have single method in the source-code. | |||
* | |||
* | |||
* This is needed, to remove the synthetic methods added if the class is | |||
* instrumented. | |||
* | |||
* | |||
* @param listenerClass | |||
* The {@link Class} of the listener, which has a single method | |||
* in the source code |
@@ -1,12 +1,12 @@ | |||
/* | |||
* Copyright 2000-2014 Vaadin Ltd. | |||
* | |||
* | |||
* 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 |
@@ -1,12 +1,12 @@ | |||
/* | |||
* Copyright 2000-2014 Vaadin Ltd. | |||
* | |||
* | |||
* 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 |
@@ -78,7 +78,7 @@ public class TreeGridDeclarativeTest | |||
.size(new HierarchicalQuery<>(null, person6.toString()))); | |||
testWrite(design, grid, true); | |||
} | |||
@Override | |||
public void valueSerialization() throws InstantiationException, |
@@ -25,16 +25,16 @@ import com.vaadin.osgi.resources.impl.VaadinResourceServiceImpl; | |||
* {@link BundleActivator} used to provide access to the | |||
* {@link VaadinResourceService} singleton for publishing themes, widgetsets and | |||
* other necessary resources. | |||
* | |||
* | |||
* @author Vaadin Ltd. | |||
* | |||
* | |||
* @since 8.1 | |||
*/ | |||
public class OsgiVaadinResources implements BundleActivator { | |||
/** | |||
* Thrown if a method is called when the Resource bundle is not active. | |||
* | |||
* | |||
* @author Vaadin Ltd. | |||
* | |||
* @since 8.1 | |||
@@ -54,7 +54,7 @@ public class OsgiVaadinResources implements BundleActivator { | |||
/** | |||
* Returns the {@link VaadinResourceService} instance. Always returns | |||
* non-null. | |||
* | |||
* | |||
* @return the {@link VaadinResourceService resource service} to use for | |||
* publishing themes, widgetsets and other necessary resources | |||
* @throws ResourceBundleInactiveException |
@@ -45,9 +45,9 @@ import com.vaadin.osgi.resources.VaadinResourceService; | |||
/** | |||
* Tracks {@link OsgiVaadinWidgetset} and {@link OsgiVaadinTheme} registration | |||
* and uses {@link HttpService} to register them. | |||
* | |||
* | |||
* @author Vaadin Ltd. | |||
* | |||
* | |||
* @since 8.1 | |||
*/ | |||
@Component(immediate = true) |
@@ -209,7 +209,7 @@ public class ApplicationConstants implements Serializable { | |||
* A request attribute name to store the part of pathInfo that was used to | |||
* select the UI. Will be used by default Navigator to separate view | |||
* identifiers from UI. This can be set by custom UI providers. | |||
* | |||
* | |||
* @since 8.2 | |||
**/ | |||
public static final String UI_ROOT_PATH = "com.vaadin.server.UI_ROOT_PATH"; |
@@ -65,7 +65,7 @@ public class SharedState implements Serializable { | |||
/** | |||
* A Map of event identifiers with registered listeners, {@code key} is | |||
* event identifier, {@code value} is the listeners count. | |||
* | |||
* | |||
* @since | |||
*/ | |||
@NoLayout |
@@ -19,7 +19,7 @@ import com.vaadin.shared.communication.ServerRpc; | |||
/** | |||
* Transmits SelectionModel selection events from the client to the server. | |||
* | |||
* | |||
* @since 8.0 | |||
*/ | |||
public interface SelectionServerRpc extends ServerRpc { |
@@ -17,7 +17,7 @@ package com.vaadin.shared.ui; | |||
/** | |||
* Represents the error levels displayed on components. | |||
* | |||
* | |||
* @author Vaadin Ltd | |||
* @since 8.2 | |||
*/ |
@@ -19,7 +19,7 @@ package com.vaadin.shared.ui; | |||
/** | |||
* Different modes for when and how often field value changes are transmitted | |||
* from the client to the server. | |||
* | |||
* | |||
* @since 8.0 | |||
*/ | |||
public enum ValueChangeMode { |
@@ -28,7 +28,7 @@ public interface AbstractDateFieldServerRpc extends ServerRpc { | |||
/** | |||
* Updates the typed data string and resolution names and values. | |||
* | |||
* | |||
* @param newDateString | |||
* the value of the text field part. It enables analyzing invalid | |||
* input on the server. {@code null} if the date was chosen with |
@@ -52,14 +52,14 @@ public class AbstractDateFieldState extends AbstractFieldState { | |||
/** | |||
* The JSON used to construct a TimeZone on the client side, can be | |||
* {@code null}. | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public String timeZoneJSON; | |||
/** | |||
* The used Locale, can be {@code null}. | |||
* | |||
* | |||
* @since | |||
*/ | |||
public String locale; | |||
@@ -67,14 +67,14 @@ public class AbstractDateFieldState extends AbstractFieldState { | |||
/** | |||
* Overridden date format string, can be {@code null} if default formatting | |||
* of the components locale is used. | |||
* | |||
* | |||
* @since | |||
*/ | |||
public String format; | |||
/** | |||
* Whether the date/time interpretation is lenient. | |||
* | |||
* | |||
* @since | |||
*/ | |||
public boolean lenient; | |||
@@ -84,16 +84,16 @@ public class AbstractDateFieldState extends AbstractFieldState { | |||
* | |||
* The key is the resolution name e.g. "HOUR", "MINUTE", with possibly | |||
* prefixed by "default-". | |||
* | |||
* | |||
* The value can be {@code null} | |||
* | |||
* | |||
* @since | |||
*/ | |||
public Map<String, Integer> resolutions = new HashMap<>(); | |||
/** | |||
* Determines if week numbers are shown in the date selector. | |||
* | |||
* | |||
* @since | |||
*/ | |||
public boolean showISOWeekNumbers; | |||
@@ -101,7 +101,7 @@ public class AbstractDateFieldState extends AbstractFieldState { | |||
/** | |||
* Was the last entered string parsable? If this flag is false, datefields | |||
* internal validator does not pass. | |||
* | |||
* | |||
* @since | |||
*/ | |||
public boolean parsable = true; |
@@ -49,7 +49,7 @@ public class EmbeddedState extends AbstractEmbeddedState { | |||
/** | |||
* The MIME-Type of the code. | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public String codetype; | |||
@@ -57,7 +57,7 @@ public class EmbeddedState extends AbstractEmbeddedState { | |||
/** | |||
* May be used to specify the location of an object's implementation via a | |||
* URI. | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public String classId; | |||
@@ -65,14 +65,14 @@ public class EmbeddedState extends AbstractEmbeddedState { | |||
/** | |||
* May be used to specify a space-separated list of URIs for archives | |||
* containing resources relevant to the object. | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public String archive; | |||
/** | |||
* The component's "alt-text". | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public String altText; | |||
@@ -80,7 +80,7 @@ public class EmbeddedState extends AbstractEmbeddedState { | |||
/** | |||
* Specifies a message that a user agent may render while loading the | |||
* object's implementation and data. | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public String standby; | |||
@@ -88,7 +88,7 @@ public class EmbeddedState extends AbstractEmbeddedState { | |||
/** | |||
* Object parameters. Parameters are optional information, and they are | |||
* passed to the instantiated object. | |||
* | |||
* | |||
* @since 8.2 | |||
*/ | |||
public final Map<String, String> parameters = new HashMap<>(); |
@@ -17,7 +17,7 @@ package com.vaadin.shared.ui.grid; | |||
/** | |||
* Collection of modes used for resizing columns in the Grid. | |||
* | |||
* | |||
* @since 7.7.5 | |||
*/ | |||
public enum ColumnResizeMode { |
@@ -53,7 +53,7 @@ public interface GridClientRpc extends ClientRpc { | |||
/** | |||
* Command client Grid to recalculate column widths. | |||
* | |||
* | |||
* @since 8.1.1 | |||
*/ | |||
public void recalculateColumnWidths(); |
@@ -47,7 +47,7 @@ public interface EditorServerRpc extends ServerRpc { | |||
* Tells the server to cancel editing. When sending a cancel request, the | |||
* client does not need to wait for confirmation by the server before hiding | |||
* the editor. | |||
* | |||
* | |||
* @param afterBeingSaved | |||
* if {@code true} then this method is called to close editor | |||
* after save action, otherwise it represents a cancel action |
@@ -19,7 +19,7 @@ import com.vaadin.shared.communication.ClientRpc; | |||
/** | |||
* Server to client RPC interface for RichTextArea. | |||
* | |||
* | |||
* @since 8.0 | |||
*/ | |||
public interface RichTextAreaClientRpc extends ClientRpc { |
@@ -19,7 +19,7 @@ import com.vaadin.shared.communication.ServerRpc; | |||
/** | |||
* Client to server RPC interface for RichTextArea. | |||
* | |||
* | |||
* @since 8.0 | |||
*/ | |||
public interface RichTextAreaServerRpc extends ServerRpc { |