EchoPoint API - 3.0.0b5
App Webcontainer

echopoint
Class HttpPane

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by echopoint.internal.AbstractContainer
          extended by echopoint.HttpPane
All Implemented Interfaces:
Serializable, RenderIdSupport

public class HttpPane
extends AbstractContainer

A component that uses a iframe to dislay the contents of a user specified URI. Note that unlike the EPNG HttpPaneEx component, this component is not a subclass of ContentPane and hence may be embedded anywhere within your application component hierarchy.

The following code sample shows usage of this component:

   import echopoint.HttpPane;
   import nextapp.echo.app.Column;

     ...
     final Column column = new Column();
     final String uri = "https://echopoint.dev.java.net/";
     final HttpPane pane = new HttpPane( uri );
     column.add( pane );
 

Version:
$Id: HttpPane.java 86 2008-11-09 14:44:29Z sptrakesh $
Author:
Brad Baker. Modified by Rakesh 2008-07-13
See Also:
Serialized Form

Field Summary
static String PROPERTY_URI
          The URI to display in this component.
 
Fields inherited from class echopoint.internal.AbstractContainer
ACTION_COMMAND_PROPERTY, ACTION_LISTENERS_CHANGED_PROPERTY, INPUT_ACTION, PROPERTY_ALIGNMENT, PROPERTY_BACKGROUND_IMAGE, PROPERTY_BORDER, PROPERTY_HEIGHT, PROPERTY_INSETS, PROPERTY_WIDTH
 
Fields inherited from class nextapp.echo.app.Component
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
HttpPane()
          Constructs a new instance that loads a blank page.
HttpPane(String uri)
          Constructs a new instance that loads the contents of the specified URI.
 
Method Summary
 String getUri()
          Return the URI that is currently loaded in this component.
 boolean isValidChild(Component child)
          Over-ridden to unconditionally return false as no children are allowed.
 void setUri(String uri)
          Sets the URI to display in this component.
 
Methods inherited from class echopoint.internal.AbstractContainer
addActionListener, fireActionPerformed, getAlignment, getBackgroundImage, getBorder, getHeight, getInsets, getWidth, hasActionListeners, removeActionListener, setAlignment, setBackgroundImage, setBorder, setHeight, setInsets, setWidth
 
Methods inherited from class nextapp.echo.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidParent, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_URI

public static final String PROPERTY_URI
The URI to display in this component.

See Also:
Constant Field Values
Constructor Detail

HttpPane

public HttpPane()
Constructs a new instance that loads a blank page.


HttpPane

public HttpPane(String uri)
Constructs a new instance that loads the contents of the specified URI. Note that the URI needs to specify the protocal (eg. http, https, etc.) for the iframe to load the contents properly.

Parameters:
uri - The URI to load in this component.
Method Detail

getUri

public String getUri()
Return the URI that is currently loaded in this component.

Returns:
The URI being displayed

setUri

public void setUri(String uri)
Sets the URI to display in this component.

Parameters:
uri - The URI to load in this component.

isValidChild

public boolean isValidChild(Component child)
Over-ridden to unconditionally return false as no children are allowed.

Overrides:
isValidChild in class Component

EchoPoint API - 3.0.0b5
App Webcontainer