Package org.jmol.awtjs.swing
Class JDialog
- java.lang.Object
-
- org.jmol.awtjs.swing.Component
-
- org.jmol.awtjs.swing.Container
-
- org.jmol.awtjs.swing.JDialog
-
public class JDialog extends Container
There is really no need here for awt.Dialog. We would not use FileDialog in an HTML5 context anyway.
-
-
Field Summary
Fields Modifier and Type Field Description private JContentPane
contentPane
protected int
defaultHeight
private int
defaultWidth
private static int
headerHeight
private String
html
(package private) int[]
loc
private String
title
private int
zIndex
-
Fields inherited from class org.jmol.awtjs.swing.Component
enabled, height, id, minHeight, minWidth, mouseListener, name, parent, renderHeight, renderWidth, text, width
-
-
Constructor Summary
Constructors Constructor Description JDialog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
JContentPane
getContentPane()
void
pack()
void
repaint()
private void
setDialog()
Set it into DOM, but don't show it yet.void
setLocation(int[] loc)
void
setTitle(String title)
void
setVisible(boolean tf)
void
setZIndex(int zIndex)
void
toFront()
String
toHTML()
void
validate()
-
Methods inherited from class org.jmol.awtjs.swing.Container
add, addComponent, getComponent, getComponentCount, getComponents, getSubcomponentHeight, getSubcomponentWidth, insertComponent, remove, removeAll
-
Methods inherited from class org.jmol.awtjs.swing.Component
addMouseListener, getCSSstyle, getHeight, getName, getParent, getText, getWidth, isEnabled, isVisible, newID, setBackground, setEnabled, setMinimumSize, setName, setParent, setPreferredSize, setText
-
-
-
-
Field Detail
-
headerHeight
private static final int headerHeight
- See Also:
- Constant Field Values
-
defaultWidth
private int defaultWidth
-
defaultHeight
protected int defaultHeight
-
contentPane
private JContentPane contentPane
-
title
private String title
-
html
private String html
-
zIndex
private int zIndex
-
loc
int[] loc
-
-
Method Detail
-
setZIndex
public void setZIndex(int zIndex)
-
setLocation
public void setLocation(int[] loc)
-
getContentPane
public JContentPane getContentPane()
-
setTitle
public void setTitle(String title)
-
pack
public void pack()
-
validate
public void validate()
-
setVisible
public void setVisible(boolean tf)
- Overrides:
setVisible
in classComponent
-
dispose
public void dispose()
-
setDialog
private void setDialog()
Set it into DOM, but don't show it yet. this.loc, this.manager, this.id, etc.
-
toFront
public void toFront()
-
-