Created
February 28, 2013 20:37
-
-
Save gastaldi/5059909 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2013 Red Hat, Inc. and/or its affiliates. | |
| * | |
| * Licensed under the Eclipse Public License version 1.0, available at | |
| * http://www.eclipse.org/legal/epl-v10.html | |
| */ | |
| package org.jboss.forge.ui.input; | |
| import java.util.concurrent.Callable; | |
| public interface UIMultipleValueInput<IMPL, VALUETYPE> | |
| { | |
| Iterable<VALUETYPE> getValue(); | |
| IMPL setDefaultValue(Iterable<VALUETYPE> value); | |
| IMPL setDefaultValue(Callable<Iterable<VALUETYPE>> callback); | |
| IMPL setValue(Iterable<VALUETYPE> value); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2013 Red Hat, Inc. and/or its affiliates. | |
| * | |
| * Licensed under the Eclipse Public License version 1.0, available at | |
| * http://www.eclipse.org/legal/epl-v10.html | |
| */ | |
| package org.jboss.forge.ui.input; | |
| import java.util.concurrent.Callable; | |
| /** | |
| * UI components implementing this interface holds a single value | |
| * | |
| * @author <a href="mailto:ggastald@redhat.com">George Gastaldi</a> | |
| * | |
| * @param <IMPL> | |
| * @param <VALUETYPE> | |
| */ | |
| public interface UISingleValue<IMPL, VALUETYPE> | |
| { | |
| VALUETYPE getValue(); | |
| IMPL setDefaultValue(VALUETYPE value); | |
| IMPL setDefaultValue(Callable<VALUETYPE> callback); | |
| IMPL setValue(VALUETYPE value); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment