com.jmex.bui
Class BMultiSelectBox<V>

java.lang.Object
  extended by com.jmex.bui.BComponent
      extended by com.jmex.bui.BContainer
          extended by com.jmex.bui.BScrollingList<V,BToggleButton>
              extended by com.jmex.bui.BMultiSelectBox<V>

public abstract class BMultiSelectBox<V>
extends BScrollingList<V,BToggleButton>


Nested Class Summary
static class BMultiSelectBox.SelectionMode
          The selection mode the list uses.
 
Nested classes/interfaces inherited from class com.jmex.bui.BScrollingList
BScrollingList.BViewport, BScrollingList.Entry<V,C extends BComponent>
 
Nested classes/interfaces inherited from class com.jmex.bui.BContainer
BContainer.ChildOp
 
Field Summary
 
Fields inherited from class com.jmex.bui.BScrollingList
_lastBottom, _model, _values, _vbar, _vport, _wheelListener, EXTENT
 
Fields inherited from class com.jmex.bui.BContainer
_children, _layout
 
Fields inherited from class com.jmex.bui.BComponent
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES
 
Constructor Summary
BMultiSelectBox()
           
BMultiSelectBox(java.util.Collection<V> values)
           
 
Method Summary
 void clearSelection()
           
protected  BToggleButton createComponent(V value)
          Must be implemented by subclasses to instantiate the correct BComponent subclass for a given list value.
protected abstract  BToggleButton createListEntry(V value)
           
 V getFirstSelection()
           
 java.util.ArrayList<V> getSelected()
           
 BMultiSelectBox.SelectionMode getSelectionMode()
           
 boolean isEmpty()
           
 void removeValue(V value)
           
 void setSelectionMode(BMultiSelectBox.SelectionMode _selectionMode)
           
 
Methods inherited from class com.jmex.bui.BScrollingList
addValue, addValue, addValue, removeValues, removeValuesFromTop
 
Methods inherited from class com.jmex.bui.BContainer
add, add, add, add, applyOperation, computePreferredSize, getComponent, getComponentCount, getComponentIndex, getDefaultStyleClass, getHitComponent, getLayoutManager, getNextFocus, getPreviousFocus, layout, remove, remove, removeAll, renderComponent, replace, setAlpha, setEnabled, setLayoutManager, setVisible, validate, wasAdded, wasRemoved
 
Methods inherited from class com.jmex.bui.BComponent
acceptsFocus, addListener, addListeners, applyDefaultStates, boundsToString, changeCursor, configureStyle, createTooltipComponent, dispatchEvent, emitEvent, getAbsoluteX, getAbsoluteY, getAlpha, getBackground, getBorder, getBounds, getColor, getCursor, getFocusTarget, getHeight, getInsets, getLocation, getName, getNextFocus, getParent, getPreferredSize, getPreviousFocus, getProperty, getState, getStateCount, getStatePseudoClass, getStyleClass, getTooltipText, getWidth, getWindow, getX, getY, hasFocus, intersectScissorBox, invalidate, isAdded, isConsumeMouseEvents, isEnabled, isHoverEnabled, isShowing, isTooltipRelativeToMouse, isValid, isVisible, removeAllListeners, removeListener, render, renderBackground, renderBorder, requestFocus, restoreScissorState, setBackground, setBounds, setConsumeMouseEvents, setCursor, setHoverEnabled, setLocation, setName, setParent, setPreferredSize, setPreferredSize, setProperty, setSize, setStyleClass, setTooltipRelativeToMouse, setTooltipText, stateDidChange, updateCursor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BMultiSelectBox

public BMultiSelectBox()

BMultiSelectBox

public BMultiSelectBox(java.util.Collection<V> values)
Method Detail

getSelectionMode

public BMultiSelectBox.SelectionMode getSelectionMode()

setSelectionMode

public void setSelectionMode(BMultiSelectBox.SelectionMode _selectionMode)

removeValue

public void removeValue(V value)

getSelected

public java.util.ArrayList<V> getSelected()

getFirstSelection

public V getFirstSelection()

isEmpty

public boolean isEmpty()

clearSelection

public void clearSelection()

createComponent

protected final BToggleButton createComponent(V value)
Description copied from class: BScrollingList
Must be implemented by subclasses to instantiate the correct BComponent subclass for a given list value.

Specified by:
createComponent in class BScrollingList<V,BToggleButton>

createListEntry

protected abstract BToggleButton createListEntry(V value)


Copyright © 2011 Michael Bayne. All Rights Reserved.