|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectppe.gui.networkspec.Choice
public abstract class Choice
One of the possible choices for a variable that is specified via
NetworkSpecFrame
.
Constructor Summary | |
---|---|
Choice()
|
Method Summary | |
---|---|
abstract void |
createCC()
Creates a choice Component that can be added to a
JPanel . |
abstract java.lang.String |
getChoiceType()
|
java.lang.String |
getColumnName(int iCol)
Default implementation: returns getLabel() |
double |
getColumnWeight(int iCol)
Default implementation: returns 1.0 |
javax.swing.JComponent |
getComponent()
|
javax.swing.JComponent |
getComponent(int iCol)
Default implementation: returns ChoiceComponent.getComponent() |
int |
getGridBagAnchor(int iCol)
Default implementation: returns GridBagConstraints.BASELINE_LEADING. |
java.awt.Insets |
getInsets(int iCol)
Default implementation: all zeros. |
abstract java.lang.String |
getLabel()
|
int |
getNColumns()
Default implementation: returns 1. |
java.lang.String |
getToolTip()
|
abstract java.lang.Object |
getValue()
|
java.lang.Object |
getValue(int iCol)
Default implementation: returns getValue() |
void |
load()
|
void |
setEnabled(boolean enabled)
|
void |
setSelected(boolean selected)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Choice()
Method Detail |
---|
public abstract void createCC()
Component
that can be added to a
JPanel
. If the component is itself a
JPanel
,
its components are created but not loaded. That's the responsibility of
the load()
method.
public void load()
public abstract java.lang.Object getValue()
public abstract java.lang.String getLabel()
public abstract java.lang.String getChoiceType()
public void setSelected(boolean selected)
public void setEnabled(boolean enabled)
public int getNColumns()
public java.lang.String getColumnName(int iCol)
getLabel()
public java.lang.Object getValue(int iCol)
getValue()
public javax.swing.JComponent getComponent()
public javax.swing.JComponent getComponent(int iCol)
ChoiceComponent.getComponent()
public double getColumnWeight(int iCol)
public int getGridBagAnchor(int iCol)
public java.awt.Insets getInsets(int iCol)
iCol
-
public java.lang.String getToolTip()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |