portal.comp.list
Class ListBox

java.lang.Object
  extended byportal.core.api.Component
      extended byportal.comp.list.ListBox
All Implemented Interfaces:
Renderable, java.io.Serializable

public class ListBox
extends Component

See Also:
Serialized Form

Constructor Summary
ListBox(ListDataModel model, SelectionModel selection)
           
 
Method Summary
 void draw(HtmlGraphics graphics)
          With this method the component can render itself using the passed HtmlGraphics object.
 ListDataModel getListDataModel()
           
 SelectionModel getSelectionModel()
           
 int getSize()
           
 void setSelectionModel(SelectionModel selection)
           
 void setSize(int size)
           
 
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

ListBox

public ListBox(ListDataModel model,
               SelectionModel selection)
Method Detail

getSize

public int getSize()

setSize

public void setSize(int size)

getListDataModel

public ListDataModel getListDataModel()

getSelectionModel

public SelectionModel getSelectionModel()

setSelectionModel

public void setSelectionModel(SelectionModel selection)

draw

public void draw(HtmlGraphics graphics)
          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:
graphics - the html graphics instance to use for drawing this component
Throws:
RenderException - when the rendering process could not proceed or encountered an error