edu.rice.cs.util.swing
Class ScrollableListDialog.Builder<T>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_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
ScrollableListDialog.Builder
public ScrollableListDialog.Builder()
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()