|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplugins.adufour.ezplug.EzComponent
public abstract class EzComponent
Abstract class defining a component of an EzPlug and its behavior in the graphical user
interface.
An EzComponent can either be an input variable (through which users can select or input values),
or a graphical object allowing to produce high-quality graphical interfaces to the EzPlug.
Methods in this class provide the ability to show and hide components directly from the interface
using triggers from other EzComponents
Field Summary | |
---|---|
java.lang.String |
name
The name of this variable (as it will appear in the interface). |
protected boolean |
visible
|
Constructor Summary | |
---|---|
protected |
EzComponent(java.lang.String name)
|
Method Summary | |
---|---|
protected abstract void |
addTo(java.awt.Container container)
|
protected void |
dispose()
|
protected EzGroup |
getGroup()
Gets the group to which this variable belongs (or null if this variable is top-level) |
boolean |
getVisible()
Deprecated. use isVisible() instead |
boolean |
isVisible()
|
protected void |
setGroup(EzGroup group)
Sets the group to which this variable belongs |
abstract void |
setToolTipText(java.lang.String text)
Assigns a tool-tip text to the variable, which pops up when the user hovers the mouse on it. |
void |
setVisible(boolean state)
Sets the component's visibility |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String name
protected boolean visible
Constructor Detail |
---|
protected EzComponent(java.lang.String name)
Method Detail |
---|
public boolean isVisible()
public boolean getVisible()
isVisible()
instead
public void setVisible(boolean state)
state
- the new visibility stateprotected abstract void addTo(java.awt.Container container)
protected final EzGroup getGroup()
protected void setGroup(EzGroup group) throws java.lang.IllegalArgumentException
group
- the parent group of this variable
java.lang.IllegalArgumentException
- if this component already belongs to a grouppublic abstract void setToolTipText(java.lang.String text)
text
- the text to display (usually no more than 20 words)protected void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |