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 JContentPanecontentPaneprotected intdefaultHeightprivate intdefaultWidthprivate static intheaderHeightprivate java.lang.Stringhtml(package private) int[]locprivate java.lang.Stringtitleprivate intzIndex-
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 voiddispose()JContentPanegetContentPane()voidpack()voidrepaint()private voidsetDialog()Set it into DOM, but don't show it yet.voidsetLocation(int[] loc)voidsetTitle(java.lang.String title)voidsetVisible(boolean tf)voidsetZIndex(int zIndex)voidtoFront()java.lang.StringtoHTML()voidvalidate()-
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 java.lang.String title
-
html
private java.lang.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(java.lang.String title)
-
pack
public void pack()
-
validate
public void validate()
-
setVisible
public void setVisible(boolean tf)
- Overrides:
setVisiblein 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()
-
-