Sky View Café - Java

org.shetline.gui
Class KPopup

java.lang.Object
  extended by javax.swing.Popup
      extended by org.shetline.gui.KPopup

public class KPopup
extends Popup


Nested Class Summary
protected  class KPopup.ClickListener
           
protected  class KPopup.PopupMonitor
           
static class KPopup.PreferredWeight
           
protected  class KPopup.WindowMovementTracker
           
 
Field Summary
static String CANCELLED
           
protected  boolean cancelOnEscape
           
protected static boolean canListenToAllEvents
           
protected  AWTEventListener clickListener
           
protected  Component contents
           
protected static KPopup.PreferredWeight defaultPreferredWeight
           
protected  JComponent jpopup
           
protected  ListenerHandler listenerHandler
           
protected  int outOfFocusCount
           
protected  Component owner
           
protected  JLayeredPane pane
           
protected  JPanel panel
           
protected  Component popup
           
protected  long popupTime
           
protected  KPopup.PreferredWeight preferredWeight
           
protected  boolean showing
           
protected  boolean useFocusMonitor
           
protected  JWindow window
           
protected  Window windowOwner
           
protected  Point windowOwnerLastLocation
           
protected  ComponentAdapter windowTracker
           
protected  int x
           
protected  int y
           
 
Constructor Summary
KPopup(Component owner, Component contents, int x, int y)
           
 
Method Summary
 void addCancellationListener(ActionListener listener)
           
 void cancel()
           
protected  void construct(Container container, Component contents)
           
 boolean containsFocus()
           
protected  boolean fitsInPane(Point pt, Dimension size)
           
 boolean getCancelOnEscape()
           
static KPopup.PreferredWeight getDefaultPreferredWeight()
           
 Component getPopupComponent()
           
 KPopup.PreferredWeight getPreferredWeight()
           
 void hide()
           
 boolean isLightWeight()
           
 boolean isShowing()
           
 void removeCancellationListener(ActionListener listener)
           
 void setCancelOnEscape(boolean cancelOnEscape)
           
static void setDefaultPreferredWeight(KPopup.PreferredWeight prefWeight)
           
 void setPreferredWeight(KPopup.PreferredWeight prefWeight)
           
 void setUseFocusMonitor(boolean state)
           
 void show()
           
 void show(boolean grabFocusWhenShown)
           
 boolean usesFocusMonitor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

KPopup

public KPopup(Component owner,
              Component contents,
              int x,
              int y)
       throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

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()

Sky View Café - Java