Package org.jmol.awtjs.swing
Class Component
- java.lang.Object
-
- org.jmol.awtjs.swing.Component
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
_visible
private javajs.api.GenericColor
bgcolor
protected boolean
enabled
protected int
height
protected String
id
protected int
minHeight
protected int
minWidth
protected Object
mouseListener
protected String
name
protected Object
parent
protected int
renderHeight
protected int
renderWidth
protected String
text
protected int
width
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addMouseListener(Object listener)
protected String
getCSSstyle(int defaultPercentW, int defaultPercentH)
int
getHeight()
String
getName()
Object
getParent()
int
getSubcomponentHeight()
int
getSubcomponentWidth()
String
getText()
int
getWidth()
boolean
isEnabled()
boolean
isVisible()
static String
newID(String type)
void
repaint()
void
setBackground(javajs.api.GenericColor color)
void
setEnabled(boolean enabled)
void
setMinimumSize(Dimension d)
void
setName(String name)
void
setParent(Object p)
void
setPreferredSize(Dimension dimension)
void
setText(String text)
void
setVisible(boolean visible)
abstract String
toHTML()
-
-
-
Field Detail
-
_visible
private boolean _visible
-
enabled
protected boolean enabled
-
text
protected String text
-
name
protected String name
-
width
protected int width
-
height
protected int height
-
id
protected String id
-
parent
protected Object parent
-
mouseListener
protected Object mouseListener
-
bgcolor
private javajs.api.GenericColor bgcolor
-
minWidth
protected int minWidth
-
minHeight
protected int minHeight
-
renderWidth
protected int renderWidth
-
renderHeight
protected int renderHeight
-
-
Constructor Detail
-
Component
protected Component(String type)
-
-
Method Detail
-
setParent
public void setParent(Object p)
-
toHTML
public abstract String toHTML()
-
setBackground
public void setBackground(javajs.api.GenericColor color)
-
setText
public void setText(String text)
-
setName
public void setName(String name)
-
getName
public String getName()
-
getParent
public Object getParent()
-
setPreferredSize
public void setPreferredSize(Dimension dimension)
-
addMouseListener
public void addMouseListener(Object listener)
-
getText
public String getText()
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
isVisible
public boolean isVisible()
-
setVisible
public void setVisible(boolean visible)
-
getHeight
public int getHeight()
-
getWidth
public int getWidth()
-
setMinimumSize
public void setMinimumSize(Dimension d)
-
getSubcomponentWidth
public int getSubcomponentWidth()
-
getSubcomponentHeight
public int getSubcomponentHeight()
-
getCSSstyle
protected String getCSSstyle(int defaultPercentW, int defaultPercentH)
-
repaint
public void repaint()
-
-