edu.rice.cs.util.swing
Class ScrollableListDialog.Builder<T>

java.lang.Object
  extended by edu.rice.cs.util.swing.ScrollableListDialog.Builder<T>
Enclosing class:
ScrollableListDialog<T>

public static class ScrollableListDialog.Builder<T>
extends Object

Factory design pattern. Used to create new ScrollableListDialogs with less complicated and ambiguous constructors.


Field Summary
protected  List<JButton> _buttons
           
protected  String _dialogTitle
           
protected  boolean _fitToScreen
           
protected  int _height
           
protected  Icon _icon
           
protected  String _leaderText
           
protected  List<T> _listItems
           
protected  int _messageType
           
protected  Frame _owner
           
protected  boolean _selectable
           
protected  List<T> _selectedItems
           
protected  int _width
           
 
Constructor Summary
ScrollableListDialog.Builder()
           
 
Method Summary
 ScrollableListDialog.Builder<T> addButton(JButton b)
           
 ScrollableListDialog.Builder<T> addOkButton()
           
 ScrollableListDialog<T> build()
           
 ScrollableListDialog.Builder<T> clearButtons()
           
 ScrollableListDialog.Builder<T> setFitToScreen(boolean fts)
           
 ScrollableListDialog.Builder<T> setHeight(int height)
           
 ScrollableListDialog.Builder<T> setIcon(Icon icon)
           
 ScrollableListDialog.Builder<T> setItems(List<T> listItems)
           
 ScrollableListDialog.Builder<T> setMessageType(int messageType)
           
 ScrollableListDialog.Builder<T> setOwner(Frame owner)
           
 ScrollableListDialog.Builder<T> setSelectable(boolean b)
           
 ScrollableListDialog.Builder<T> setSelectedItems(List<T> selItems)
           
 ScrollableListDialog.Builder<T> setText(String leaderText)
           
 ScrollableListDialog.Builder<T> setTitle(String dialogTitle)
           
 ScrollableListDialog.Builder<T> setWidth(int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_owner

protected Frame _owner

_dialogTitle

protected String _dialogTitle

_leaderText

protected String _leaderText

_listItems

protected List<T> _listItems

_selectedItems

protected List<T> _selectedItems

_messageType

protected int _messageType

_width

protected int _width

_height

protected int _height

_icon

protected Icon _icon

_fitToScreen

protected boolean _fitToScreen

_buttons

protected List<JButton> _buttons

_selectable

protected boolean _selectable
Constructor Detail

ScrollableListDialog.Builder

public ScrollableListDialog.Builder()
Method Detail

setOwner

public ScrollableListDialog.Builder<T> setOwner(Frame owner)

setTitle

public ScrollableListDialog.Builder<T> setTitle(String dialogTitle)

setText

public ScrollableListDialog.Builder<T> setText(String leaderText)

setItems

public ScrollableListDialog.Builder<T> setItems(List<T> listItems)

setSelectedItems

public ScrollableListDialog.Builder<T> setSelectedItems(List<T> selItems)

setMessageType

public ScrollableListDialog.Builder<T> setMessageType(int messageType)

setWidth

public ScrollableListDialog.Builder<T> setWidth(int width)

setHeight

public ScrollableListDialog.Builder<T> setHeight(int height)

setIcon

public ScrollableListDialog.Builder<T> setIcon(Icon icon)

setFitToScreen

public ScrollableListDialog.Builder<T> setFitToScreen(boolean fts)

clearButtons

public ScrollableListDialog.Builder<T> clearButtons()

addOkButton

public ScrollableListDialog.Builder<T> addOkButton()

addButton

public ScrollableListDialog.Builder<T> addButton(JButton b)

setSelectable

public ScrollableListDialog.Builder<T> setSelectable(boolean b)

build

public ScrollableListDialog<T> build()