|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.widgets.AbstractWindow
This abstract class is the superclass of all classes that show a Window or Frame on screen and want intelligence added such as automatic placing and sizing based on screen size, monitor setup and naturally content size.
Field Summary | |
protected Window |
internalWindow
|
Constructor Summary | |
AbstractWindow(Window owner,
String title,
boolean modal)
Create an invisible Window with an optional owner and title. |
Method Summary | |
protected abstract Window |
createInternalWindow(Dialog owner,
String title,
boolean modal)
|
protected abstract Window |
createInternalWindow(Frame owner,
String title,
boolean modal)
|
Rectangle |
getBounds()
During or after showing you can query the rectangle of the dialog. |
protected uic.widgets.AbstractWindow.DialogSizePanel |
getDialogSizePanel()
An in-between panel is used between the JDialog and the Content of the user, this method fetches it. |
Point |
getLocation()
During or after showing you can query the location of the dialog. |
protected RootPaneContainer |
getRPContainer()
|
Dimension |
getSize()
During or after showing you can query the size of the dialog. |
protected void |
positionDialog(boolean move)
|
static void |
positionDialog(boolean move,
Window target,
Window parent)
Place the dialog on screen. |
void |
setComponent(Component c)
Place a Component on your dialog. |
int |
show()
Convenience method for the next version. |
int |
show(Point location,
Dimension size)
Show the dialog at the given location. |
int |
show(Rectangle dialogBounds)
Convenience method for the above version. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Window internalWindow
Constructor Detail |
public AbstractWindow(Window owner, String title, boolean modal)
After creating the AbstractWindow do a setComponent() and a show()
owner
- The owner should either be a JFrame or a JDialog extending
class (such as another StandardDialog). It can also be null.title
- the name the dialog will get.modal
- true for a modal dialog, false for one that allows other windows to
be active at the same time.Method Detail |
protected abstract Window createInternalWindow(Frame owner, String title, boolean modal)
protected abstract Window createInternalWindow(Dialog owner, String title, boolean modal)
protected RootPaneContainer getRPContainer()
public void setComponent(Component c)
public int show(Point location, Dimension size)
location
- the x and y coordinates on the screen where the dialog should appear, can be null to use parents position.size
- a size hint for the dialog, can be null to use default based on the preferredSize.
public int show(Rectangle dialogBounds)
public int show()
protected void positionDialog(boolean move)
public static void positionDialog(boolean move, Window target, Window parent)
move
- the user allows us to move the dialog.public Point getLocation()
show(Point, Dimension)
public Dimension getSize()
show(Point, Dimension)
protected uic.widgets.AbstractWindow.DialogSizePanel getDialogSizePanel()
public Rectangle getBounds()
show(Rectangle)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |