ppe.gui.networkspec
Class AmiChoice

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

public class AmiChoice
extends Choice


Constructor Summary
AmiChoice()
          Creates 'other'
AmiChoice(com.amazonaws.services.ec2.model.Image image, com.amazonaws.services.ec2.AmazonEC2Client ec2Client)
           
 
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()
           
 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()
 java.lang.String getDescription()
           
 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()
 boolean isDevPay()
           
 boolean usesHvm()
           
 boolean usesParavirtual()
           
 
Methods inherited from class ppe.gui.networkspec.Choice
getComponent, load, setEnabled, setSelected
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmiChoice

public AmiChoice(com.amazonaws.services.ec2.model.Image image,
                 com.amazonaws.services.ec2.AmazonEC2Client ec2Client)

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

getDescription

public java.lang.String getDescription()

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 int getNColumns()
Description copied from class: Choice
Default implementation: returns 1.

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

getColumnName

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

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

getComponent

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

Overrides:
getComponent in class Choice
Returns:

isDevPay

public boolean isDevPay()

getToolTip

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