import com.vaadin.client.ui.dd.VDragAndDropManager;
import com.vaadin.client.ui.ui.UIConnector;
import com.vaadin.client.ui.window.WindowConnector;
-import com.vaadin.shared.ApplicationConstants;
import com.vaadin.shared.AbstractComponentState;
+import com.vaadin.shared.ApplicationConstants;
import com.vaadin.shared.Version;
import com.vaadin.shared.communication.LegacyChangeVariablesInvocation;
import com.vaadin.shared.communication.MethodInvocation;
* @return true if at least one listener has been registered on server side
* for the event identified by eventIdentifier.
* @deprecated as of Vaadin 7. Use
- * {@link AbstractComponentState#hasEventListener(String)} instead
+ * {@link AbstractComponentState#hasEventListener(String)}
+ * instead
*/
@Deprecated
public boolean hasEventListeners(ComponentConnector paintable,
/**
* @deprecated as of Vaadin 7. Use
- * {@link AbstractComponentState#hasEventListener(String)} instead
+ * {@link AbstractComponentState#hasEventListener(String)}
+ * instead
*/
@Deprecated
public boolean hasEventListeners(Widget widget, String eventIdentifier) {
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.client.RenderInformation.FloatSize;
import com.vaadin.client.ui.VOverlay;
-import com.vaadin.shared.ApplicationConstants;
import com.vaadin.shared.AbstractComponentState;
+import com.vaadin.shared.ApplicationConstants;
import com.vaadin.shared.communication.MethodInvocation;
import com.vaadin.shared.ui.ComponentStateUtil;
import com.google.gwt.user.client.ui.HTML;
import com.vaadin.client.ui.AbstractFieldConnector;
import com.vaadin.client.ui.Icon;
+import com.vaadin.shared.AbstractComponentState;
import com.vaadin.shared.AbstractFieldState;
import com.vaadin.shared.ComponentConstants;
-import com.vaadin.shared.AbstractComponentState;
import com.vaadin.shared.ui.ComponentStateUtil;
public class VCaption extends HTML {
import com.vaadin.client.metadata.TypeData;
import com.vaadin.client.ui.datefield.PopupDateFieldConnector;
import com.vaadin.client.ui.ui.UIConnector;
-import com.vaadin.shared.ComponentConstants;
import com.vaadin.shared.AbstractComponentState;
+import com.vaadin.shared.ComponentConstants;
import com.vaadin.shared.Connector;
import com.vaadin.shared.ui.ComponentStateUtil;
import com.vaadin.shared.ui.TabIndexState;
* @param componentState
* shared state of the combo box
*/
- public void updateStyleNames(UIDL uidl, AbstractComponentState componentState) {
+ public void updateStyleNames(UIDL uidl,
+ AbstractComponentState componentState) {
setStyleName(VFilterSelect.this.getStylePrimaryName()
+ "-suggestpopup");
menu.setStyleName(VFilterSelect.this.getStylePrimaryName()
import com.vaadin.client.Focusable;
import com.vaadin.client.StyleConstants;
import com.vaadin.client.VTooltip;
-import com.vaadin.shared.ComponentConstants;
import com.vaadin.shared.AbstractComponentState;
+import com.vaadin.shared.ComponentConstants;
import com.vaadin.shared.ui.ComponentStateUtil;
import com.vaadin.shared.ui.MarginInfo;
* @param enabled
* @return An array of stylenames
*/
- private String[] getStylesFromState(AbstractComponentState state, boolean enabled) {
+ private String[] getStylesFromState(AbstractComponentState state,
+ boolean enabled) {
List<String> styles = new ArrayList<String>();
if (ComponentStateUtil.hasStyles(state)) {
for (String name : state.styles) {
VisibilityChangeEvent.getType());
}
+ @Override
public Iterator<Widget> iterator() {
return Collections.singleton((Widget) popup).iterator();
}
}
/** For internal use only. May be removed or replaced in the future. */
- public void updateSelectionProperties(UIDL uidl, AbstractComponentState state,
- boolean readOnly) {
+ public void updateSelectionProperties(UIDL uidl,
+ AbstractComponentState state, boolean readOnly) {
setMultiSelectMode(uidl.hasAttribute("multiselectmode") ? uidl
.getIntAttribute("multiselectmode") : MULTISELECT_MODE_DEFAULT);
* com.vaadin.terminal.gwt.client.ui.ShortcutActionTarget#handleAction(com
* .vaadin.terminal.gwt.client.ui.ShortcutAction)
*/
+ @Override
public boolean handleAction(ShortcutAction action) {
if ("click".equals(action.getTargetAction())) {
getWidget().onClick();
import com.google.gwt.event.shared.GwtEvent;
-public class VisibilityChangeEvent extends
- GwtEvent<VisibilityChangeHandler> {
+public class VisibilityChangeEvent extends GwtEvent<VisibilityChangeHandler> {
private static Type<VisibilityChangeHandler> TYPE;
import com.vaadin.client.Paintable;
import com.vaadin.client.UIDL;
import com.vaadin.client.ui.AbstractFieldConnector;
-import com.vaadin.client.ui.VRichTextArea;
import com.vaadin.client.ui.ShortcutActionHandler.BeforeShortcutActionListener;
+import com.vaadin.client.ui.VRichTextArea;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.Connect.LoadStyle;
import com.vaadin.ui.RichTextArea;
import com.vaadin.client.Paintable;
import com.vaadin.client.UIDL;
import com.vaadin.client.ui.AbstractFieldConnector;
-import com.vaadin.client.ui.VTextField;
import com.vaadin.client.ui.ShortcutActionHandler.BeforeShortcutActionListener;
+import com.vaadin.client.ui.VTextField;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.Connect.LoadStyle;
import com.vaadin.shared.ui.textfield.AbstractTextFieldState;
import com.vaadin.client.ApplicationConnection;
import com.vaadin.client.UIDL;
import com.vaadin.client.ui.FocusableScrollPanel;
-import com.vaadin.client.ui.VTreeTable;
import com.vaadin.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow;
+import com.vaadin.client.ui.VTreeTable;
import com.vaadin.client.ui.VTreeTable.PendingNavigationEvent;
import com.vaadin.client.ui.table.TableConnector;
import com.vaadin.shared.ui.Connect;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import com.vaadin.client.ui.ShortcutActionTarget;
import com.vaadin.server.Resource;
import com.vaadin.ui.Component;
import com.vaadin.ui.ComponentContainer;
*/
private void writePerformanceData(final PrintWriter outWriter) {
outWriter.write(String.format(", \"timings\":[%d, %d]",
- session.getCumulativeRequestDuration(), session.getLastRequestDuration()));
+ session.getCumulativeRequestDuration(),
+ session.getLastRequestDuration()));
}
private void legacyPaint(PaintTarget paintTarget,
String pathInfo = request.getPathInfo();
// + 2 to also remove beginning and ending slashes
String fileName = pathInfo
- .substring(ApplicationConstants.PUBLISHED_FILE_PATH
- .length() + 2);
+ .substring(ApplicationConstants.PUBLISHED_FILE_PATH.length() + 2);
final String mimetype = response.getService().getMimeType(fileName);
package com.vaadin.server;
-
/**
* System messages provider using the built-in default system messages. This
* singleton is accessed using {@link #get()}.
}
public static boolean isPublishedFileRequest(VaadinRequest request) {
- return hasPathPrefix(request,
- ApplicationConstants.PUBLISHED_FILE_PATH + "/");
+ return hasPathPrefix(request, ApplicationConstants.PUBLISHED_FILE_PATH
+ + "/");
}
public static boolean isUIDLRequest(VaadinRequest request) {
.getCommunicationManager();
if (requestType == RequestType.PUBLISHED_FILE) {
- communicationManager.servePublishedFile(
- vaadinRequest, vaadinResponse);
+ communicationManager.servePublishedFile(vaadinRequest,
+ vaadinResponse);
return;
} else if (requestType == RequestType.HEARTBEAT) {
communicationManager.handleHeartbeatRequest(
import com.vaadin.server.ErrorMessage;
import com.vaadin.server.Resource;
import com.vaadin.server.VaadinSession;
-import com.vaadin.shared.ComponentConstants;
import com.vaadin.shared.AbstractComponentState;
+import com.vaadin.shared.ComponentConstants;
import com.vaadin.shared.ui.ComponentStateUtil;
import com.vaadin.util.ReflectTools;
import java.util.EventListener;
-import com.vaadin.server.ClientConnector;
import com.vaadin.server.PaintException;
import com.vaadin.server.PaintTarget;
import com.vaadin.server.VariableOwner;
import com.vaadin.server.UIProvider;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinService;
-import com.vaadin.server.VaadinSession;
import com.vaadin.server.VaadinServlet;
+import com.vaadin.server.VaadinSession;
import com.vaadin.shared.EventId;
import com.vaadin.shared.MouseEventDetails;
import com.vaadin.shared.ui.ui.UIConstants;
import junit.framework.TestCase;
-
public class TestAbstractApplicationServletStaticFilesLocation extends TestCase {
VaadinServlet servlet;
String basePackage, String[] ignoredPackages) throws IOException {
List<Class<? extends T>> classes = new ArrayList<Class<? extends T>>();
String basePackageDirName = "/" + basePackage.replace('.', '/');
- URL location = VaadinSession.class
- .getResource(basePackageDirName);
+ URL location = VaadinSession.class.getResource(basePackageDirName);
if (location.getProtocol().equals("file")) {
try {
File f = new File(location.toURI());
int numReadOnlyChanges = 0;
AbstractField field = new AbstractField() {
- final private VaadinSession application = new VaadinSession(
- null);
+ final private VaadinSession application = new VaadinSession(null);
private UI uI = new UI() {
@Override
navigator.navigateTo("test");
control.replay();
- UriFragmentChangedEvent event = new UriFragmentChangedEvent(page, "oldtest");
+ UriFragmentChangedEvent event = new UriFragmentChangedEvent(page,
+ "oldtest");
manager.uriFragmentChanged(event);
}
}
public static final String HEARTBEAT_REQUEST_PATH = "HEARTBEAT/";
- public static final String PUBLISHED_FILE_PATH = APP_REQUEST_PATH
- + '/' + "PUBLISHED";
+ public static final String PUBLISHED_FILE_PATH = APP_REQUEST_PATH + '/'
+ + "PUBLISHED";
public static final String APP_PROTOCOL_PREFIX = "app://";
public static final String PUBLISHED_PROTOCOL_NAME = "published";
import com.vaadin.shared.communication.ServerRpc;
-
public interface PopupViewServerRpc extends ServerRpc {
public void setPopupVisibility(boolean visible);
return b.toString();
}
+ @Override
public void traverse() {
try {
ArrayList<String> newList = new ArrayList<String>();
ArrayList<String> parentSelectors = ((BlockNode) node.getParentNode())
.getSelectorList();
- ArrayList<String> childSelectors = ((BlockNode) node).getSelectorList();
+ ArrayList<String> childSelectors = node.getSelectorList();
for (int i = 0; i < parentSelectors.size(); i++) {
String parentSelector = parentSelectors.get(i);
for (int j = 0; j < childSelectors.size(); j++) {
import com.vaadin.server.UIClassSelectionEvent;
import com.vaadin.server.UIProvider;
import com.vaadin.server.VaadinRequest;
-import com.vaadin.server.VaadinSession;
import com.vaadin.server.VaadinServletRequest;
+import com.vaadin.server.VaadinSession;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.UI;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Select;
-public class ListenerOrder extends com.vaadin.server.LegacyApplication implements
- Button.ClickListener, PropertySetChangeListener, ItemSetChangeListener,
- ValueChangeListener {
+public class ListenerOrder extends com.vaadin.server.LegacyApplication
+ implements Button.ClickListener, PropertySetChangeListener,
+ ItemSetChangeListener, ValueChangeListener {
Button b1;
}
@Override
- public boolean handleRequest(VaadinSession session,
- VaadinRequest request, VaadinResponse response) throws IOException {
+ public boolean handleRequest(VaadinSession session, VaadinRequest request,
+ VaadinResponse response) throws IOException {
context.setValue("Context not available");
relative.setValue(request.getPathInfo());
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.server.ClassResource;
import com.vaadin.server.DownloadStream;
-import com.vaadin.server.ErrorEvent;
import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
addComponent(log);
log.log("Initial fragment: " + getPage().getUriFragment());
- getPage().addUriFragmentChangedListener(new UriFragmentChangedListener() {
- @Override
- public void uriFragmentChanged(UriFragmentChangedEvent event) {
- log.log("Fragment changed to " + event.getUriFragment());
- }
- });
+ getPage().addUriFragmentChangedListener(
+ new UriFragmentChangedListener() {
+ @Override
+ public void uriFragmentChanged(UriFragmentChangedEvent event) {
+ log.log("Fragment changed to " + event.getUriFragment());
+ }
+ });
}
@Override
*/
package com.vaadin.tests.application;
-import com.vaadin.server.ErrorEvent;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
reportStatus(phase, VaadinSession.getCurrent(), UI.getCurrent());
}
- private void reportStatus(String phase, VaadinSession application,
- UI uI) {
+ private void reportStatus(String phase, VaadinSession application, UI uI) {
log.log(getState(application, this) + " app in " + phase);
log.log(getState(uI, mainWindow) + " root in " + phase);
}
import com.vaadin.event.FieldEvents.FocusEvent;
import com.vaadin.event.FieldEvents.FocusListener;
import com.vaadin.event.FieldEvents.FocusNotifier;
-import com.vaadin.server.ErrorEvent;
import com.vaadin.server.Resource;
import com.vaadin.server.ThemeResource;
import com.vaadin.tests.util.Log;
public class HierarchyChangeForRemovedComponentContainers extends TestBase {
-
private HorizontalLayout mainContent;
private VerticalLayout lo2;
btnLogin.setWidth("-1px");
btnLogin.setHeight("-1px");
btnLogin.addClickListener(new Button.ClickListener() {
+ @Override
public void buttonClick(Button.ClickEvent event) {
login();
}
import com.vaadin.event.ShortcutAction.KeyCode;
import com.vaadin.event.ShortcutAction.ModifierKey;
-import com.vaadin.server.ErrorEvent;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
@Override
public void init() {
- LegacyWindow mainWindow = new LegacyWindow(
- "Gridlayoutbug Application");
+ LegacyWindow mainWindow = new LegacyWindow("Gridlayoutbug Application");
setMainWindow(mainWindow);
Label description = new Label(
private static final String ENABLED = "DateField text box enabled";
private static final String DISABLED = "DateField text box disabled";
+
@Override
public void setup() {
final PopupDateField field = new PopupDateField();
public void valueChange(Property.ValueChangeEvent event) {
field.setTextFieldEnabled((Boolean) event.getProperty()
.getValue());
- if(field.isTextFieldEnabled()){
+ if (field.isTextFieldEnabled()) {
box.setCaption(ENABLED);
- }else{
+ } else {
box.setCaption(DISABLED);
}
}
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.Component;
-import com.vaadin.ui.ComponentContainer;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.VerticalLayout;
@Override
protected void setup(VaadinRequest request) {
- setContent((ComponentContainer) getTestLayout());
+ setContent(getTestLayout());
}
@Override
Object columnId) {
final Label l = new Label();
@SuppressWarnings("unchecked")
- final Property<Integer> integer = (Property<Integer>) source
- .getContainerProperty(itemId, "integer");
+ final Property<Integer> integer = source.getContainerProperty(
+ itemId, "integer");
l.setValue(String.valueOf(getMultipliedValue(integer)));
// we must hook value change listener to ensure updates in all use
final Button btnSwitch = new Button("switch to Tab2",\r
new Button.ClickListener() {\r
\r
+ @Override\r
public void buttonClick(final ClickEvent inEvent) {\r
tabsOuter.setSelectedTab(tabsInner);\r
tabsInner.setSelectedTab(tab2);\r
Button button = new Button("Change icon", new ClickListener() {
+ @Override
public void buttonClick(ClickEvent event) {
tree.getItem("bar0").getItemProperty("icon").setValue(ICON2);
}
addComponent(button);
button = new Button("Change caption", new ClickListener() {
+ @Override
public void buttonClick(ClickEvent event) {
tree.getItem("bar0").getItemProperty("name").setValue("foo");
}
@Override
protected void setup(VaadinRequest request) {
- getPage().addUriFragmentChangedListener(new UriFragmentChangedListener() {
-
- public void uriFragmentChanged(UriFragmentChangedEvent source) {
- String newFragment = source.getUriFragment();
- log.log("Fragment changed from " + lastKnownFragment + " to "
- + newFragment);
- lastKnownFragment = newFragment;
- }
- });
+ getPage().addUriFragmentChangedListener(
+ new UriFragmentChangedListener() {
+
+ @Override
+ public void uriFragmentChanged(
+ UriFragmentChangedEvent source) {
+ String newFragment = source.getUriFragment();
+ log.log("Fragment changed from " + lastKnownFragment
+ + " to " + newFragment);
+ lastKnownFragment = newFragment;
+ }
+ });
addComponent(log);
addComponent(new Button("Set fragment to 'foo'",
new Button.ClickListener() {
+ @Override
public void buttonClick(ClickEvent event) {
setFragment("foo");
}
addComponent(new Button("Set fragment to 'bar'",
new Button.ClickListener() {
+ @Override
public void buttonClick(ClickEvent event) {
setFragment("bar");
}
public static class TabUI extends UI {
@Override
protected void init(VaadinRequest request) {
- VaadinSession application = VaadinSession
- .getCurrent();
+ VaadinSession application = VaadinSession.getCurrent();
AtomicInteger count = numberOfUIsOpened.get(application);
if (count == null) {
numberOfUIsOpened.putIfAbsent(application, new AtomicInteger());
final MyBean myBean = new MyBean();
BeanItem<MyBean> beanItem = new BeanItem<MyBean>(myBean);
- final Property<Integer> integerProperty = (Property<Integer>) beanItem
+ final Property<Integer> integerProperty = beanItem
.getItemProperty("value");
final TextField textField = new TextField("Text field", integerProperty);
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1365 extends com.vaadin.server.LegacyApplication implements Handler {
+public class Ticket1365 extends com.vaadin.server.LegacyApplication implements
+ Handler {
TextField f = new TextField();
* stream that contains the response from the server.
*/
@Override
- public boolean handleRequest(VaadinSession session,
- VaadinRequest request, VaadinResponse response) throws IOException {
+ public boolean handleRequest(VaadinSession session, VaadinRequest request,
+ VaadinResponse response) throws IOException {
String relativeUri = request.getPathInfo();
// Catch the given URI that identifies the resource, otherwise let other
// URI handlers or the Application to handle the response.
}
@Override
- public boolean handleRequest(VaadinSession session,
- VaadinRequest request, VaadinResponse response) throws IOException {
+ public boolean handleRequest(VaadinSession session, VaadinRequest request,
+ VaadinResponse response) throws IOException {
Map<String, String[]> parameters = request.getParameterMap();
String[] s = parameters.get("state");
if (s == null || s.length != 1) {
}
@Override
- public boolean handleRequest(VaadinSession session,
- VaadinRequest request, VaadinResponse response) throws IOException {
+ public boolean handleRequest(VaadinSession session, VaadinRequest request,
+ VaadinResponse response) throws IOException {
String relativeUri = request.getPathInfo();
if (!relativeUri.contains("icon.png")) {
public void buttonClick(ClickEvent event) {
String viewName = tf.getValue().toString();
// fragmentChangedListener will change the view if possible
- event.getButton().getUI().getPage().setUriFragment(viewName);
+ event.getButton().getUI().getPage()
+ .setUriFragment(viewName);
}
});
this.itemId = itemId;
}
+ @Override
public Property<?> getItemProperty(Object propertyId) {
ObjectProperty<String> property = new ObjectProperty<String>(
containerPropertyIdDefaults.get(propertyId) + " (item "
}
+ @Override
public Collection<?> getItemPropertyIds() {
return getContainerPropertyIds();
}
+ @Override
@SuppressWarnings("rawtypes")
public boolean addItemProperty(Object id, Property property)
throws UnsupportedOperationException {
throw new UnsupportedOperationException("Cannot add item property");
}
+ @Override
public boolean removeItemProperty(Object id)
throws UnsupportedOperationException {
throw new UnsupportedOperationException(
private Map<Object, Class<?>> containerPropertyIdTypes = new HashMap<Object, Class<?>>();
private Map<Object, Object> containerPropertyIdDefaults = new HashMap<Object, Object>();
+ @Override
public Object nextItemId(Object itemId) {
Integer id = (Integer) itemId;
if (id >= size() - 1) {
return (id + 1);
}
+ @Override
public Object prevItemId(Object itemId) {
Integer id = (Integer) itemId;
if (id <= 0) {
return (id - 1);
}
+ @Override
public Object firstItemId() {
if (0 == size()) {
return null;
return 0;
}
+ @Override
public Object lastItemId() {
if (0 == size()) {
return null;
return (size() - 1);
}
+ @Override
public boolean isFirstId(Object itemId) {
if (null == itemId) {
return false;
return itemId.equals(firstItemId());
}
+ @Override
public boolean isLastId(Object itemId) {
if (null == itemId) {
return false;
return itemId.equals(lastItemId());
}
+ @Override
public TestItem getItem(Object itemId) {
if (!containsId(itemId)) {
return null;
return new TestItem(itemId);
}
+ @Override
public Collection<?> getItemIds() {
return new RangeCollection(size());
}
numberOfIds, this);
}
+ @Override
public Property<?> getContainerProperty(Object itemId, Object propertyId) {
TestItem item = getItem(itemId);
if (null == item) {
return item.getItemProperty(propertyId);
}
+ @Override
public int size() {
return size;
}
+ @Override
public boolean containsId(Object itemId) {
if (!(itemId instanceof Integer)) {
return false;
return (id >= 0 && id < (size() - 1));
}
+ @Override
public int indexOfId(Object itemId) {
if (!containsId(itemId)) {
return -1;
return (Integer) itemId;
}
+ @Override
public Object getIdByIndex(int index) {
return index;
}
size = newSize;
}
+ @Override
public boolean removeAllItems() throws UnsupportedOperationException {
setSize(0);
return true;
}
+ @Override
public Class<?> getType(Object propertyId) {
return containerPropertyIdTypes.get(propertyId);
}
+ @Override
public Collection<?> getContainerPropertyIds() {
return containerPropertyIdTypes.keySet();
}
+ @Override
public boolean addContainerProperty(Object propertyId, Class<?> type,
Object defaultValue) throws UnsupportedOperationException {
if (containerPropertyIdTypes.containsKey(propertyId) || null == type) {
return true;
}
+ @Override
public boolean removeContainerProperty(Object propertyId)
throws UnsupportedOperationException {
if (!containerPropertyIdTypes.containsKey(propertyId)) {
return true;
}
+ @Override
public Item addItem(Object itemId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public Object addItem() throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public boolean removeItem(Object itemId)
throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public Object addItemAt(int index) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public Item addItemAt(int index, Object newItemId)
throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public Object addItemAfter(Object previousItemId)
throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public Item addItemAfter(Object previousItemId, Object newItemId)
throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
value = 0;
}
+ @Override
public boolean hasNext() {
return (value < max - 1);
}
+ @Override
public Integer next() {
return value++;
}
+ @Override
public void remove() {
throw new UnsupportedOperationException();
}
* @param application
* @return file pointing to sample directory
*/
- public static File getDirectory(VaadinSession application,
- LegacyWindow uI) {
+ public static File getDirectory(VaadinSession application, LegacyWindow uI) {
String errorMessage = "Access to application "
+ "context base directory failed, "
+ "possible security constraint with Application "