de.matthiasmann.twl
Class TreeComboBox

java.lang.Object
  extended by de.matthiasmann.twl.Widget
      extended by de.matthiasmann.twl.ComboBoxBase
          extended by de.matthiasmann.twl.TreeComboBox

public class TreeComboBox
extends ComboBoxBase

A drop down combo box which shows a TreeTable and has a TreePathDisplay as label


Nested Class Summary
static interface TreeComboBox.Callback
           
static interface TreeComboBox.PathResolver
           
 
Nested classes/interfaces inherited from class de.matthiasmann.twl.Widget
Widget.OffscreenMouseAdjustments, Widget.RenderOffscreen
 
Field Summary
 
Fields inherited from class de.matthiasmann.twl.ComboBoxBase
button, popup, STATE_COMBOBOX_KEYBOARD_FOCUS
 
Fields inherited from class de.matthiasmann.twl.Widget
STATE_DISABLED, STATE_HAS_FOCUSED_CHILD, STATE_HAS_OPEN_POPUPS, STATE_KEYBOARD_FOCUS
 
Constructor Summary
TreeComboBox()
           
TreeComboBox(TreeTableModel model)
           
 
Method Summary
 void addCallback(TreeComboBox.Callback callback)
           
protected  void applyTheme(ThemeInfo themeInfo)
          Apply the given theme.
protected  void applyTreeComboboxPopupThemeName(ThemeInfo themeInfo)
           
 TreeTableNode getCurrentNode()
           
 EditField getEditField()
           
protected  Widget getLabel()
           
 TreeTableModel getModel()
           
 TreeComboBox.PathResolver getPathResolver()
           
 java.lang.String getSeparator()
           
 TreeTable getTreeTable()
           
protected  boolean openPopup()
           
 void removeCallback(TreeComboBox.Callback callback)
           
 void setCurrentNode(TreeTableNode node)
           
 void setModel(TreeTableModel model)
           
 void setPathResolver(TreeComboBox.PathResolver pathResolver)
           
 void setSeparator(java.lang.String separator)
           
 
Methods inherited from class de.matthiasmann.twl.ComboBoxBase
getMinHeight, getMinWidth, getPreferredInnerHeight, getPreferredInnerWidth, keyboardFocusGained, keyboardFocusLost, layout, popupEscapePressed, setPopupSize, sizeChanged
 
Methods inherited from class de.matthiasmann.twl.Widget
add, addActionMapping, addPropertyChangeListener, addPropertyChangeListener, adjustSize, afterAddToGUI, allChildrenRemoved, applyThemeBackground, applyThemeBorder, applyThemeInputMap, applyThemeMaxSize, applyThemeMinSize, applyThemeMouseCursor, applyThemeOffscreenExtra, applyThemeOverlay, applyThemeTooltip, beforeRemoveFromGUI, borderChanged, canAcceptKeyboardFocus, childAdded, childInvalidateLayout, childRemoved, childVisibilityChanged, computeSize, destroy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, focusFirstChild, focusLastChild, focusNextChild, focusPrevChild, getActionMap, getAnimationState, getBackground, getBorderBottom, getBorderHorizontal, getBorderLeft, getBorderRight, getBorderTop, getBorderVertical, getBottom, getChild, getChildAt, getChildIndex, getGUI, getHeight, getInnerBottom, getInnerHeight, getInnerRight, getInnerWidth, getInnerX, getInnerY, getInputMap, getKeyboardFocusOrder, getMaxHeight, getMaxWidth, getMouseCursor, getMouseCursor, getNumChildren, getOffscreenExtraBottom, getOffscreenExtraLeft, getOffscreenExtraRight, getOffscreenExtraTop, getOrCreateActionMap, getOverlay, getParent, getPreferredHeight, getPreferredWidth, getRenderOffscreen, getRight, getRootWidget, getTheme, getThemePath, getThemeTooltipContent, getTintAnimator, getTooltipContent, getTooltipContentAt, getWidgetAt, getWidth, getX, getY, giveupKeyboardFocus, handleEvent, handleKeyStrokeAction, hasKeyboardFocus, hasOpenPopups, hasSharedAnimationState, insertChild, invalidateLayout, invalidateLayoutLocally, isAbsoluteTheme, isClip, isDepthFocusTraversal, isEnabled, isFocusKeyEnabled, isInside, isLocallyEnabled, isMouseInside, isVisible, keyboardFocusChildChanged, keyboardFocusGained, layoutChildFullInnerArea, layoutChildrenFullInnerArea, moveChild, paint, paintBackground, paintChild, paintChildren, paintDragOverlay, paintOverlay, paintWidget, positionChanged, reapplyTheme, removeAllChildren, removeChild, removeChild, removePropertyChangeListener, removePropertyChangeListener, requestKeyboardFocus, requestKeyboardFocus, resetTooltip, setActionMap, setBackground, setBorderSize, setBorderSize, setBorderSize, setBorderSize, setCanAcceptKeyboardFocus, setClip, setDepthFocusTraversal, setEnabled, setFocusKeyEnabled, setInnerSize, setInputMap, setMaxSize, setMinSize, setMouseCursor, setOffscreenExtra, setOffscreenExtra, setOverlay, setPosition, setRenderOffscreen, setSize, setTheme, setTintAnimator, setTooltipContent, setVisible, updateTintAnimation, updateTooltip, validateLayout, widgetDisabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeComboBox

public TreeComboBox()

TreeComboBox

public TreeComboBox(TreeTableModel model)
Method Detail

getModel

public TreeTableModel getModel()

setModel

public void setModel(TreeTableModel model)

setCurrentNode

public void setCurrentNode(TreeTableNode node)

getCurrentNode

public TreeTableNode getCurrentNode()

setSeparator

public void setSeparator(java.lang.String separator)

getSeparator

public java.lang.String getSeparator()

getPathResolver

public TreeComboBox.PathResolver getPathResolver()

setPathResolver

public void setPathResolver(TreeComboBox.PathResolver pathResolver)

getTreeTable

public TreeTable getTreeTable()

getEditField

public EditField getEditField()

addCallback

public void addCallback(TreeComboBox.Callback callback)

removeCallback

public void removeCallback(TreeComboBox.Callback callback)

applyTheme

protected void applyTheme(ThemeInfo themeInfo)
Description copied from class: Widget
Apply the given theme. This method also calls invalidateLayout()

Overrides:
applyTheme in class Widget
Parameters:
themeInfo - The theme info for this widget

applyTreeComboboxPopupThemeName

protected void applyTreeComboboxPopupThemeName(ThemeInfo themeInfo)

getLabel

protected Widget getLabel()
Specified by:
getLabel in class ComboBoxBase

openPopup

protected boolean openPopup()
Overrides:
openPopup in class ComboBoxBase