org.shetline.gui
Class KPopup
java.lang.Object
javax.swing.Popup
org.shetline.gui.KPopup
public class KPopup
- extends Popup
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cancelOnEscape
protected boolean cancelOnEscape
clickListener
protected AWTEventListener clickListener
contents
protected Component contents
jpopup
protected JComponent jpopup
listenerHandler
protected ListenerHandler listenerHandler
outOfFocusCount
protected int outOfFocusCount
owner
protected Component owner
pane
protected JLayeredPane pane
panel
protected JPanel panel
popup
protected Component popup
popupTime
protected long popupTime
preferredWeight
protected KPopup.PreferredWeight preferredWeight
showing
protected boolean showing
useFocusMonitor
protected boolean useFocusMonitor
window
protected JWindow window
windowOwner
protected Window windowOwner
windowOwnerLastLocation
protected Point windowOwnerLastLocation
windowTracker
protected ComponentAdapter windowTracker
x
protected int x
y
protected int y
canListenToAllEvents
protected static boolean canListenToAllEvents
defaultPreferredWeight
protected static KPopup.PreferredWeight defaultPreferredWeight
CANCELLED
public static final String CANCELLED
- See Also:
- Constant Field Values
KPopup
public KPopup(Component owner,
Component contents,
int x,
int y)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
show
public void show()
- Overrides:
show
in class Popup
show
public void show(boolean grabFocusWhenShown)
construct
protected void construct(Container container,
Component contents)
fitsInPane
protected boolean fitsInPane(Point pt,
Dimension size)
hide
public void hide()
- Overrides:
hide
in class Popup
cancel
public void cancel()
isShowing
public boolean isShowing()
containsFocus
public boolean containsFocus()
isLightWeight
public boolean isLightWeight()
getPopupComponent
public Component getPopupComponent()
setUseFocusMonitor
public void setUseFocusMonitor(boolean state)
usesFocusMonitor
public boolean usesFocusMonitor()
setCancelOnEscape
public void setCancelOnEscape(boolean cancelOnEscape)
getCancelOnEscape
public boolean getCancelOnEscape()
addCancellationListener
public void addCancellationListener(ActionListener listener)
removeCancellationListener
public void removeCancellationListener(ActionListener listener)
setPreferredWeight
public void setPreferredWeight(KPopup.PreferredWeight prefWeight)
getPreferredWeight
public KPopup.PreferredWeight getPreferredWeight()
setDefaultPreferredWeight
public static void setDefaultPreferredWeight(KPopup.PreferredWeight prefWeight)
getDefaultPreferredWeight
public static KPopup.PreferredWeight getDefaultPreferredWeight()