portal.comp.tabbed
Class TabbedPane

java.lang.Object
  extended byportal.core.api.Component
      extended byportal.comp.tabbed.TabbedPane
All Implemented Interfaces:
IValidatable, Renderable, java.io.Serializable

public class TabbedPane
extends Component
implements IValidatable

See Also:
Serialized Form

Constructor Summary
TabbedPane()
           
 
Method Summary
 Tab add(java.lang.String title, Component component)
           
 void add(Tab newTab)
           
 void draw(HtmlGraphics htmlGraphics)
          With this method the component can render itself using the passed HtmlGraphics object.
 int getIndexOfTab(Tab tab)
           
 int getSelectedIndex()
           
 java.util.Iterator iterator()
           
 boolean removeTab(Tab removeTab)
           
 void setSelectedTab(int index)
           
 void setSelectedTab(Tab tab)
           
 int size()
           
 void validate(IValidationContext validationContext)
           
 
Methods inherited from class portal.core.api.Component
afterRender, beforeRender, createDefaultModel, getLayout, getModel, getParent, isEnabled, isVisible, render, setEnabled, setLayout, setModel, setParent, setVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TabbedPane

public TabbedPane()
Method Detail

add

public Tab add(java.lang.String title,
               Component component)

add

public void add(Tab newTab)

removeTab

public boolean removeTab(Tab removeTab)

getIndexOfTab

public int getIndexOfTab(Tab tab)

size

public int size()

getSelectedIndex

public int getSelectedIndex()

setSelectedTab

public void setSelectedTab(Tab tab)

setSelectedTab

public void setSelectedTab(int index)

iterator

public java.util.Iterator iterator()

validate

public void validate(IValidationContext validationContext)
Specified by:
validate in interface IValidatable

draw

public void draw(HtmlGraphics htmlGraphics)
          throws RenderException
Description copied from class: Component

With this method the component can render itself using the passed HtmlGraphics object. This method is not called when a layout manager is set since the existence of a layout manager takes precedence above the draw() method.

Overrides:
draw in class Component
Parameters:
htmlGraphics - the html graphics instance to use for drawing this component
Throws:
RenderException - when the rendering process could not proceed or encountered an error