public class PopupChooserBuilder<T> extends java.lang.Object implements IPopupChooserBuilder<T>
Modifier and Type | Class and Description |
---|---|
static interface |
PopupChooserBuilder.PopupComponentAdapter<T> |
Constructor and Description |
---|
PopupChooserBuilder(javax.swing.JList<T> list) |
PopupChooserBuilder(javax.swing.JTable table) |
PopupChooserBuilder(javax.swing.JTree tree) |
public PopupChooserBuilder(javax.swing.JList<T> list)
public PopupChooserBuilder(javax.swing.JTable table)
public PopupChooserBuilder(javax.swing.JTree tree)
public PopupChooserBuilder<T> setCancelOnClickOutside(boolean cancelOnClickOutside)
setCancelOnClickOutside
in interface IPopupChooserBuilder<T>
public javax.swing.JScrollPane getScrollPane()
public PopupChooserBuilder<T> setTitle(java.lang.String title)
setTitle
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> addAdditionalChooseKeystroke(javax.swing.KeyStroke keyStroke)
public IPopupChooserBuilder<T> setRenderer(javax.swing.ListCellRenderer<? super T> renderer)
setRenderer
in interface IPopupChooserBuilder<T>
public javax.swing.JComponent getChooserComponent()
public IPopupChooserBuilder<T> setItemChosenCallback(Consumer<? super T> callback)
setItemChosenCallback
in interface IPopupChooserBuilder<T>
public IPopupChooserBuilder<T> setItemsChosenCallback(Consumer<? super java.util.Set<? extends T>> callback)
setItemsChosenCallback
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setItemChoosenCallback(java.lang.Runnable runnable)
public PopupChooserBuilder<T> setSouthComponent(javax.swing.JComponent cmp)
public PopupChooserBuilder<T> setCouldPin(Processor<? super JBPopup> callback)
setCouldPin
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setEastComponent(javax.swing.JComponent cmp)
public PopupChooserBuilder<T> setRequestFocus(boolean requestFocus)
setRequestFocus
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setResizable(boolean forceResizable)
setResizable
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setMovable(boolean forceMovable)
setMovable
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setDimensionServiceKey(java.lang.String key)
setDimensionServiceKey
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setUseDimensionServiceForXYLocation(boolean use)
setUseDimensionServiceForXYLocation
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setCancelCallback(Computable<java.lang.Boolean> callback)
setCancelCallback
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setCommandButton(ActiveComponent commandButton)
public PopupChooserBuilder<T> setAlpha(float alpha)
setAlpha
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setAutoselectOnMouseMove(boolean doAutoSelect)
setAutoselectOnMouseMove
in interface IPopupChooserBuilder<T>
public boolean isAutoselectOnMouseMove()
public PopupChooserBuilder<T> setFilteringEnabled(Function<java.lang.Object,java.lang.String> namer)
public PopupChooserBuilder<T> setNamerForFiltering(Function<? super T,java.lang.String> namer)
setNamerForFiltering
in interface IPopupChooserBuilder<T>
public IPopupChooserBuilder<T> setAutoPackHeightOnFiltering(boolean autoPackHeightOnFiltering)
setAutoPackHeightOnFiltering
in interface IPopupChooserBuilder<T>
public boolean isAutoPackHeightOnFiltering()
public PopupChooserBuilder<T> setModalContext(boolean modalContext)
setModalContext
in interface IPopupChooserBuilder<T>
public JBPopup createPopup()
createPopup
in interface IPopupChooserBuilder<T>
protected void addCenterComponentToContentPane(javax.swing.JPanel contentPane, javax.swing.JComponent component)
public PopupChooserBuilder<T> setMinSize(java.awt.Dimension dimension)
setMinSize
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> registerKeyboardAction(javax.swing.KeyStroke keyStroke, java.awt.event.ActionListener actionListener)
registerKeyboardAction
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setAutoSelectIfEmpty(boolean autoselect)
setAutoSelectIfEmpty
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setCancelKeyEnabled(boolean enabled)
setCancelKeyEnabled
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> addListener(JBPopupListener listener)
addListener
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setSettingButton(java.awt.Component button)
setSettingButton
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setMayBeParent(boolean mayBeParent)
setMayBeParent
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setCloseOnEnter(boolean closeOnEnter)
setCloseOnEnter
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setFocusOwners(java.awt.Component [] focusOwners)
public PopupChooserBuilder<T> setAdText(java.lang.String ad)
setAdText
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setAdText(java.lang.String ad, int alignment)
setAdText
in interface IPopupChooserBuilder<T>
public PopupChooserBuilder<T> setCancelOnWindowDeactivation(boolean cancelOnWindowDeactivation)
setCancelOnWindowDeactivation
in interface IPopupChooserBuilder<T>
public IPopupChooserBuilder<T> setSelectionMode(int selection)
setSelectionMode
in interface IPopupChooserBuilder<T>
public IPopupChooserBuilder<T> setSelectedValue(T preselection, boolean shouldScroll)
setSelectedValue
in interface IPopupChooserBuilder<T>
public IPopupChooserBuilder<T> setAccessibleName(java.lang.String title)
setAccessibleName
in interface IPopupChooserBuilder<T>
public IPopupChooserBuilder<T> setItemSelectedCallback(Consumer<? super T> c)
setItemSelectedCallback
in interface IPopupChooserBuilder<T>
public IPopupChooserBuilder<T> withHintUpdateSupply()
withHintUpdateSupply
in interface IPopupChooserBuilder<T>
public IPopupChooserBuilder<T> setFont(java.awt.Font f)
setFont
in interface IPopupChooserBuilder<T>
public IPopupChooserBuilder<T> setVisibleRowCount(int visibleRowCount)
setVisibleRowCount
in interface IPopupChooserBuilder<T>
public int getVisibleRowCount()
public ListComponentUpdater getBackgroundUpdater()
getBackgroundUpdater
in interface IPopupChooserBuilder<T>