public class ComponentPopupBuilderImpl extends java.lang.Object implements ComponentPopupBuilder
Constructor and Description |
---|
ComponentPopupBuilderImpl(javax.swing.JComponent component,
javax.swing.JComponent preferredFocusedComponent) |
public ComponentPopupBuilderImpl(javax.swing.JComponent component, javax.swing.JComponent preferredFocusedComponent)
public ComponentPopupBuilder setMayBeParent(boolean mayBeParent)
setMayBeParent
in interface ComponentPopupBuilder
public ComponentPopupBuilder setTitle(java.lang.String title)
setTitle
in interface ComponentPopupBuilder
public ComponentPopupBuilder setResizable(boolean resizable)
setResizable
in interface ComponentPopupBuilder
public ComponentPopupBuilder setMovable(boolean movable)
setMovable
in interface ComponentPopupBuilder
public ComponentPopupBuilder setCancelOnClickOutside(boolean cancel)
setCancelOnClickOutside
in interface ComponentPopupBuilder
public ComponentPopupBuilder setCancelOnMouseOutCallback(MouseChecker shouldCancel)
setCancelOnMouseOutCallback
in interface ComponentPopupBuilder
public ComponentPopupBuilder addListener(JBPopupListener listener)
addListener
in interface ComponentPopupBuilder
public ComponentPopupBuilder setRequestFocus(boolean requestFocus)
setRequestFocus
in interface ComponentPopupBuilder
public ComponentPopupBuilder setFocusable(boolean focusable)
setFocusable
in interface ComponentPopupBuilder
public ComponentPopupBuilder setDimensionServiceKey(Project project, java.lang.String key, boolean useForXYLocation)
setDimensionServiceKey
in interface ComponentPopupBuilder
DimensionService
public ComponentPopupBuilder setCancelCallback(Computable<java.lang.Boolean> shouldProceed)
setCancelCallback
in interface ComponentPopupBuilder
public ComponentPopupBuilder setCancelButton(IconButton cancelButton)
setCancelButton
in interface ComponentPopupBuilder
public ComponentPopupBuilder setCommandButton(ActiveComponent button)
setCommandButton
in interface ComponentPopupBuilder
public ComponentPopupBuilder setCouldPin(Processor<? super JBPopup> callback)
setCouldPin
in interface ComponentPopupBuilder
public ComponentPopupBuilder setKeyboardActions(java.util.List<? extends Pair<java.awt.event.ActionListener,javax.swing.KeyStroke>> keyboardActions)
setKeyboardActions
in interface ComponentPopupBuilder
public ComponentPopupBuilder setSettingButtons(java.awt.Component button)
setSettingButtons
in interface ComponentPopupBuilder
public ComponentPopupBuilder setCancelOnOtherWindowOpen(boolean cancelOnWindow)
setCancelOnOtherWindowOpen
in interface ComponentPopupBuilder
public ComponentPopupBuilder setCancelOnWindowDeactivation(boolean cancelOnWindowDeactivation)
setCancelOnWindowDeactivation
in interface ComponentPopupBuilder
public ComponentPopupBuilder setKeyEventHandler(BooleanFunction<? super java.awt.event.KeyEvent> handler)
ComponentPopupBuilder
JBPopup.dispatchKeyEvent(KeyEvent)
.setKeyEventHandler
in interface ComponentPopupBuilder
public ComponentPopupBuilder setProject(Project project)
setProject
in interface ComponentPopupBuilder
public JBPopup createPopup()
createPopup
in interface ComponentPopupBuilder
public ComponentPopupBuilder setRequestFocusCondition(Project project, Condition<? super Project> condition)
setRequestFocusCondition
in interface ComponentPopupBuilder
public ComponentPopupBuilder setTitleIcon(ActiveIcon icon)
setTitleIcon
in interface ComponentPopupBuilder
public ComponentPopupBuilder setCancelKeyEnabled(boolean enabled)
setCancelKeyEnabled
in interface ComponentPopupBuilder
public ComponentPopupBuilder setLocateByContent(boolean byContent)
setLocateByContent
in interface ComponentPopupBuilder
public ComponentPopupBuilder setLocateWithinScreenBounds(boolean within)
setLocateWithinScreenBounds
in interface ComponentPopupBuilder
public ComponentPopupBuilder setMinSize(java.awt.Dimension minSize)
setMinSize
in interface ComponentPopupBuilder
public ComponentPopupBuilder setMaskProvider(MaskProvider maskProvider)
ComponentPopupBuilder
setMaskProvider
in interface ComponentPopupBuilder
public ComponentPopupBuilder setAlpha(float alpha)
setAlpha
in interface ComponentPopupBuilder
public ComponentPopupBuilder setBelongsToGlobalPopupStack(boolean isInStack)
setBelongsToGlobalPopupStack
in interface ComponentPopupBuilder
public ComponentPopupBuilder addUserData(java.lang.Object object)
addUserData
in interface ComponentPopupBuilder
public ComponentPopupBuilder setModalContext(boolean modal)
setModalContext
in interface ComponentPopupBuilder
public ComponentPopupBuilder setFocusOwners(java.awt.Component [] focusOwners)
setFocusOwners
in interface ComponentPopupBuilder
public ComponentPopupBuilder setAdText(java.lang.String text)
ComponentPopupBuilder
setAdText
in interface ComponentPopupBuilder
public ComponentPopupBuilder setAdText(java.lang.String text, int textAlignment)
setAdText
in interface ComponentPopupBuilder
public ComponentPopupBuilder setShowShadow(boolean show)
setShowShadow
in interface ComponentPopupBuilder
public ComponentPopupBuilder setShowBorder(boolean show)
setShowBorder
in interface ComponentPopupBuilder
public ComponentPopupBuilder setNormalWindowLevel(boolean b)
setNormalWindowLevel
in interface ComponentPopupBuilder
public ComponentPopupBuilder setBorderColor(java.awt.Color color)
setBorderColor
in interface ComponentPopupBuilder
public ComponentPopupBuilder setOkHandler(java.lang.Runnable okHandler)
ComponentPopupBuilder
JBPopup.closeOk(InputEvent)
.setOkHandler
in interface ComponentPopupBuilder