All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gwt.dom.builder.shared.IFrameBuilder Maven / Gradle / Ivy

/*
 * Copyright 2011 Google Inc.
 * 
 * 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
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.google.gwt.dom.builder.shared;

import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.SafeUri;
import com.google.gwt.safehtml.shared.annotations.IsSafeUri;

/**
 * Builds an iframe element.
 */
public interface IFrameBuilder extends ElementBuilderBase {

  /**
   * Request frame borders.
   * 
   * @see W3C
   *      HTML Specification
   */
  IFrameBuilder frameBorder(int frameBorder);

  /**
   * Throws {@link UnsupportedOperationException}.
   * 
   * 

* Appending children or content directly to an iframe isn't supported. You * must use the src attribute to specify the url of the content to load, or * wait until the document is loaded. *

* * @throws UnsupportedOperationException */ @Override IFrameBuilder html(SafeHtml html); /** * Frame margin height, in pixels. * * @see W3C * HTML Specification */ IFrameBuilder marginHeight(int marginHeight); /** * Frame margin width, in pixels. * * @see W3C * HTML Specification */ IFrameBuilder marginWidth(int marginWidth); /** * The frame name (object of the target attribute). * * @see W3C * HTML Specification */ IFrameBuilder name(String name); /** * Forbid user from resizing frame. * * @see W3C * HTML Specification */ IFrameBuilder noResize(); /** * Specify whether or not the frame should have scrollbars. * * @see W3C * HTML Specification */ IFrameBuilder scrolling(String scrolling); /** * A URI designating the initial frame contents. * * @see W3C * HTML Specification */ IFrameBuilder src(SafeUri src); /** * A URI designating the initial frame contents. * * @see W3C * HTML Specification */ IFrameBuilder src(@IsSafeUri String src); /** * Throws {@link UnsupportedOperationException}. * *

* Appending children or content directly to an iframe isn't supported. You * must use the src attribute to specify the url of the content to load, or * wait until the document is loaded. *

* * @throws UnsupportedOperationException */ @Override IFrameBuilder text(String html); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy