ppe.gui.networkspec
Class InstanceTypeChoice

java.lang.Object
  extended by ppe.gui.networkspec.Choice
      extended by ppe.gui.networkspec.InstanceTypeChoice

public class InstanceTypeChoice
extends Choice


Constructor Summary
InstanceTypeChoice(Ec2InstanceType instanceType)
           
 
Method Summary
 void createCC()
          Creates a choice Component that can be added to a JPanel.
 java.lang.String getChoiceType()
           
 java.lang.String getColumnName(int iCol)
          Default implementation: returns Choice.getLabel()
 double getColumnWeight(int iCol)
          Default implementation: returns 1.0
 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.
 java.lang.String getLabel()
           
 int getNColumns()
          Default implementation: returns 1.
 java.lang.String getToolTip()
           
 java.lang.Object getValue()
           
 java.lang.Object getValue(int iCol)
          Default implementation: returns Choice.getValue()
 
Methods inherited from class ppe.gui.networkspec.Choice
getComponent, load, setEnabled, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceTypeChoice

public InstanceTypeChoice(Ec2InstanceType instanceType)
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

getNColumns

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

Overrides:
getNColumns in class Choice
Returns:

getColumnName

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

Overrides:
getColumnName in class Choice
Returns:

getValue

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

Overrides:
getValue 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:

getColumnWeight

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

Overrides:
getColumnWeight in class Choice
Returns:

getGridBagAnchor

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

Overrides:
getGridBagAnchor in class Choice
Returns:

getInsets

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

Overrides:
getInsets in class Choice
Returns:

getToolTip

public java.lang.String getToolTip()
Overrides:
getToolTip in class Choice