com.ezware.oxbow.swingbits.popup
Class PopupWindow

java.lang.Object
  extended by com.ezware.oxbow.swingbits.popup.PopupWindow

public abstract class PopupWindow
extends Object


Nested Class Summary
 class PopupWindow.CommandAction
          Simple action to for the popup window.
 
Constructor Summary
PopupWindow(boolean resizable)
           
 
Method Summary
protected  void beforeHide()
           
protected  void beforeShow()
           
protected abstract  JComponent buildContent()
          Override this method to add content yo the owner.
 Dimension getDefaultSize()
           
 Dimension getPreferredSize()
           
 void hide()
          Hides popup
 void setPreferredSize(Dimension preferredSize)
           
 void show(Component invoker, int x, int y)
          Shows Popup in predefined location
 void show(Component invoker, Point location)
          Shows popup in predefined location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupWindow

public PopupWindow(boolean resizable)
Method Detail

getDefaultSize

public final Dimension getDefaultSize()

getPreferredSize

public final Dimension getPreferredSize()

setPreferredSize

public final void setPreferredSize(Dimension preferredSize)

buildContent

protected abstract JComponent buildContent()
Override this method to add content yo the owner. This method is only executed when owner has no subcomponents

Parameters:
owner -

show

public void show(Component invoker,
                 int x,
                 int y)
Shows Popup in predefined location

Parameters:
invoker -
x -
y -

show

public void show(Component invoker,
                 Point location)
Shows popup in predefined location

Parameters:
invoker -
location -

hide

public final void hide()
Hides popup


beforeShow

protected void beforeShow()

beforeHide

protected void beforeHide()


Copyright © 2011. All Rights Reserved.