com.itmill.toolkit.ui
Class FrameWindow.Frame

java.lang.Object
  extended by com.itmill.toolkit.ui.FrameWindow.Frame
Direct Known Subclasses:
FrameWindow.Frameset
Enclosing class:
FrameWindow

public class FrameWindow.Frame
extends Object

An individual frame that contains either a window or the contents of the url set to frame.

The frames can be only created to framesets using the newFrame method of the frameset.


Field Summary
protected  FrameWindow.Frameset parentFrameset
          Parent frameset.
 
Constructor Summary
FrameWindow.Frame()
           
 
Method Summary
 String getName()
          Gets the Name of the frame.
 FrameWindow.Frameset getParentFrameset()
          Gets the parent frameset.
 Resource getResource()
          Gets the Resource connected to frame.
 URL getURL()
          Gets the URL of the frame.
 Window getWindow()
          Gets the Window connected to frame.
 void setAbsoluteSize(int widthInPixels)
          Sets the Absolute width/height of the frame in pixels.
 void setFreeSize()
          Sets the frame size to be freely specified by the terminal.
 void setRelativeSize(int widthInPercents)
          Sets the frame width/height as a percentage of the containing frameset size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentFrameset

protected FrameWindow.Frameset parentFrameset
Parent frameset.

Constructor Detail

FrameWindow.Frame

public FrameWindow.Frame()
Method Detail

getURL

public URL getURL()
Gets the URL of the frame.

Returns:
the URl.

getParentFrameset

public FrameWindow.Frameset getParentFrameset()
Gets the parent frameset.

Returns:
the parent frameset.

getName

public String getName()
Gets the Name of the frame.

Returns:
the Name.

getWindow

public Window getWindow()
Gets the Window connected to frame.

Returns:
the window.

getResource

public Resource getResource()
Gets the Resource connected to frame.

Returns:
the resource.

setAbsoluteSize

public void setAbsoluteSize(int widthInPixels)
Sets the Absolute width/height of the frame in pixels.

Parameters:
widthInPixel - the width in Pixel.

setFreeSize

public void setFreeSize()
Sets the frame size to be freely specified by the terminal.


setRelativeSize

public void setRelativeSize(int widthInPercents)
Sets the frame width/height as a percentage of the containing frameset size.

Parameters:
widthInPercents - the frame width in percent.


Copyright © 2000-2008 IT Mill Ltd. All Rights Reserved.