public WizardPopupFooter(
     final Command cmdPreviousButton,
     final Command cmdNextButton,
     final Command cmdCancelButton,
     final Command cmdFinishButton) {
   this.cmdPreviousButton =
       PortablePreconditions.checkNotNull("cmdPreviousButton", cmdPreviousButton);
   this.cmdNextButton = PortablePreconditions.checkNotNull("cmdNextButton", cmdNextButton);
   this.cmdCancelButton = PortablePreconditions.checkNotNull("cmdCancelButton", cmdCancelButton);
   this.cmdFinishButton = PortablePreconditions.checkNotNull("cmdFinishButton", cmdFinishButton);
   add(uiBinder.createAndBindUi(this));
 }
 public CardinalityRuleImpl(
     @MapsTo("name") String name,
     @MapsTo("role") String role,
     @MapsTo("minOccurrences") Integer minOccurrences,
     @MapsTo("maxOccurrences") Integer maxOccurrences) {
   this.name = PortablePreconditions.checkNotNull("name", name);
   this.role = PortablePreconditions.checkNotNull("role", role);
   if (minOccurrences < 0) {
     throw new IllegalArgumentException("minOccurrences cannot be less than 0.");
   }
   this.minOccurrences = minOccurrences;
   if (maxOccurrences > -1 && maxOccurrences < minOccurrences) {
     throw new IllegalArgumentException("maxOccurrences cannot be less than minOccurrences.");
   }
   this.maxOccurrences = maxOccurrences;
 }
 public CommandBuilder add(final Class<? extends Throwable> throwable, final Command command) {
   PortablePreconditions.checkNotNull("throwable", throwable);
   PortablePreconditions.checkNotNull("command", command);
   commands.put(throwable, command);
   return this;
 }
 @Override
 public void init(final Path resourcePath) {
   this.resourcePath = PortablePreconditions.checkNotNull("resourcePath", resourcePath);
 }
 HideNotificationCommand(final View notificationContainerView) {
   this.notificationContainerView =
       PortablePreconditions.checkNotNull(
           "notificationContainerView", notificationContainerView);
 }
 public void setOverview(final Overview overview) {
   this.overview = PortablePreconditions.checkNotNull("overview", overview);
 }
 public void setRoles(Collection<String> roles) {
   this.roles = PortablePreconditions.checkNotNull("roles", roles);
 }
 public SectionEntry(final String caption, final Command onClickCommand) {
   this.caption = PortablePreconditions.checkNotNull("caption", caption);
   this.onClickCommand = PortablePreconditions.checkNotNull("onClickCommand", onClickCommand);
 }
Beispiel #9
0
 public GraphImpl(
     @MapsTo("uuid") String uuid, @MapsTo("nodeStore") GraphNodeStore<Node> nodeStore) {
   super(uuid);
   this.nodeStore = PortablePreconditions.checkNotNull("nodeStore", nodeStore);
 }