com.norbl.cbp.ppe.gui.networkspec
Class AmiChoice

java.lang.Object
  extended by com.norbl.cbp.ppe.gui.networkspec.Choice
      extended by com.norbl.cbp.ppe.gui.networkspec.AmiChoice
Direct Known Subclasses:
AmiChoiceOmpi, AmiChoiceR, AmiChoiceU

public abstract class AmiChoice
extends Choice


Field Summary
 
Fields inherited from class com.norbl.cbp.ppe.gui.networkspec.Choice
ID, parentChoiceSet
 
Constructor Summary
AmiChoice()
          Creates 'other'
AmiChoice(AmiPPE ami)
           
 
Method Summary
 void createCC()
          Creates a choice Component that can be added to a JPanel.
 boolean equals(java.lang.Object other)
           
 java.lang.String getChoiceType()
           
abstract  java.lang.String getColumnName(int iCol)
          Default implementation: returns Choice.getLabel()
abstract  double getColumnWeight(int iCol)
          Default implementation: returns 1.0
 javax.swing.JComponent getComponent(int iCol)
          Default implementation: returns ChoiceComponent.getComponent()
abstract  int getGridBagAnchor(int iCol)
          Default implementation: returns GridBagConstraints.BASELINE_LEADING.
abstract  java.awt.Insets getInsets(int iCol)
          Default implementation: all zeros.
 java.lang.String getLabel()
           
abstract  int getNColumns()
          Default implementation: returns 1.
protected  java.lang.String getUnauthorizedToolTipMessage()
           
 java.lang.Object getValue()
           
abstract  java.lang.Object getValue(int iCol)
          Default implementation: returns Choice.getValue()
 boolean usesHvm()
           
 boolean usesParavirtual()
           
 
Methods inherited from class com.norbl.cbp.ppe.gui.networkspec.Choice
getComponent, getToolTip, load, setColumnHeaderToolTip, setEnabled, setID, setParentChoiceSet, setSelected
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmiChoice

public AmiChoice(AmiPPE ami)

AmiChoice

public AmiChoice()
Creates 'other'

Method Detail

getChoiceType

public java.lang.String getChoiceType()
Specified by:
getChoiceType in class Choice

getValue

public java.lang.Object getValue()
Specified by:
getValue in class Choice

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in class Choice

createCC

public void createCC()
Description copied from class: Choice
Creates a choice 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 Choice.load() method.

Specified by:
createCC in class Choice

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

usesParavirtual

public boolean usesParavirtual()

usesHvm

public boolean usesHvm()

getNColumns

public abstract int getNColumns()
Description copied from class: Choice
Default implementation: returns 1.

Overrides:
getNColumns in class Choice
Returns:

getValue

public abstract java.lang.Object getValue(int iCol)
Description copied from class: Choice
Default implementation: returns Choice.getValue()

Overrides:
getValue in class Choice
Returns:

getColumnName

public abstract java.lang.String getColumnName(int iCol)
Description copied from class: Choice
Default implementation: returns Choice.getLabel()

Overrides:
getColumnName in class Choice
Returns:

getColumnWeight

public abstract double getColumnWeight(int iCol)
Description copied from class: Choice
Default implementation: returns 1.0

Overrides:
getColumnWeight in class Choice
Returns:

getGridBagAnchor

public abstract int getGridBagAnchor(int iCol)
Description copied from class: Choice
Default implementation: returns GridBagConstraints.BASELINE_LEADING.

Overrides:
getGridBagAnchor in class Choice
Returns:

getInsets

public abstract java.awt.Insets getInsets(int iCol)
Description copied from class: Choice
Default implementation: all zeros.

Overrides:
getInsets in class Choice
Returns:

getComponent

public javax.swing.JComponent getComponent(int iCol)
Description copied from class: Choice
Default implementation: returns ChoiceComponent.getComponent()

Overrides:
getComponent in class Choice
Returns:

getUnauthorizedToolTipMessage

protected java.lang.String getUnauthorizedToolTipMessage()