Class symantec.itools.db.beans.binding.editors.BindingWizardChooseComponentPanel
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.binding.editors.BindingWizardChooseComponentPanel
Object
|
+----Component
|
+----Container
|
+----JComponent
|
+----JPanel
|
+----WizardPanel
|
+----symantec.itools.db.beans.binding.editors.BindingWizardChooseComponentPanel
- public class BindingWizardChooseComponentPanel
- extends WizardPanel
- implements ActionListener
This class is the "Choose a Component" page in the BindingWizard.
- Version:
- 1.0 10/12/98
- Author:
- Hristo Tonev
-
bindingModelVObj
-
-
boundCompLibVObjs
-
-
boundProjVObjs
-
-
centerPanel
-
-
compLib
-
-
compLibRootVObjs
-
-
contentPanel
-
-
currentProject
-
-
existingCompButton
-
-
existingCompComboBox
-
-
existingCompPanel
-
-
existingCompTextArea
-
-
existingCompWorkPanel
-
-
firstEnter
-
-
jLabelVObj
-
-
jScrollPaneVObj
-
-
newCompButton
-
-
newCompComboBox
-
-
newCompLabelLabel
-
-
newCompLabelPanel
-
-
newCompLabelTextField
-
-
newCompPanel
-
-
newCompWorkPanel
-
-
noteTextArea
-
-
projRootVObjs
-
-
radioButtonsGroup
-
-
sliverImageLabel
-
-
sliverImagePanel
-
-
tableBindingModelVObj
-
-
titleTextArea
-
-
visualCafe
-
-
symantec.itools.db.beans.binding.editors.BindingWizardChooseComponentPanel()
- Default constructor
-
symantec.itools.db.beans.binding.editors.BindingWizardChooseComponentPanel(BindingWizardController)
- The constructor that should be used in the wizard
-
actionPerformed(ActionEvent)
-
-
bindExistingComponent()
- This method will databind an already existing visual component
It will generate ONLY BindingModel
-
cancel()
-
-
createContentPane()
-
-
createExistingCompPanel()
-
-
createNewCompPanel()
-
-
createNewComponent()
- Add a new "databound" component
This will create a new Component (may be a JScrollPane), BindingModel, and
eventually a JLabel
-
createRadioButtons()
-
-
createSliverImagePanel()
-
-
entering()
-
-
exiting()
-
-
findDataBoundProjectComponents(VisualObject)
- Build recursively the list with all "databound" components
-
findLastInsertedChild(VisualObject)
- Helper method to find the last inserted child.
-
finish()
-
-
generateCode()
- Generate the code for the new components
-
getNewY(VisualObject)
- Helper method to find the Y for the component we are going to insert.
-
initControls()
-
-
introspectProject()
- Introspects the current project to find
all components that could be databound.
-
isDataBoundComponent(VisualObject)
-
-
isSupportedContainer(VisualObject)
-
-
main(String[])
-
-
setBindingModelBeanProperties(VisualObject, VisualObject, String)
-
-
setCustomProperty(VisualObject, String, String, Object, String)
- Sets a property for the given VisualObject.
-
setObjectReferenceProperty(VisualObject, String, int)
- Sets a property for the given VisualObject.
-
setProperty(VisualObject, String, String)
- Sets a property for the given VisualObject.
bindingModelVObj
protected com.symantec.itools.vcafe.openapi.VisualObject bindingModelVObj
boundCompLibVObjs
protected java.util.Vector boundCompLibVObjs
boundProjVObjs
protected java.util.Vector boundProjVObjs
centerPanel
protected com.sun.java.swing.JPanel centerPanel
compLib
protected com.symantec.itools.vcafe.openapi.ComponentLibrary compLib
compLibRootVObjs
protected com.symantec.itools.vcafe.openapi.VisualObject[] compLibRootVObjs
contentPanel
protected com.sun.java.swing.JPanel contentPanel
currentProject
protected com.symantec.itools.vcafe.openapi.VisualProject currentProject
existingCompButton
protected com.sun.java.swing.JRadioButton existingCompButton
existingCompComboBox
protected com.sun.java.swing.JComboBox existingCompComboBox
existingCompPanel
protected com.sun.java.swing.JPanel existingCompPanel
existingCompTextArea
protected com.sun.java.swing.JTextArea existingCompTextArea
existingCompWorkPanel
protected com.sun.java.swing.JPanel existingCompWorkPanel
firstEnter
protected boolean firstEnter
jLabelVObj
protected com.symantec.itools.vcafe.openapi.VisualObject jLabelVObj
jScrollPaneVObj
protected com.symantec.itools.vcafe.openapi.VisualObject jScrollPaneVObj
newCompButton
protected com.sun.java.swing.JRadioButton newCompButton
newCompComboBox
protected com.sun.java.swing.JComboBox newCompComboBox
newCompLabelLabel
protected com.sun.java.swing.JLabel newCompLabelLabel
newCompLabelPanel
protected com.sun.java.swing.JPanel newCompLabelPanel
newCompLabelTextField
protected com.sun.java.swing.JTextField newCompLabelTextField
newCompPanel
protected com.sun.java.swing.JPanel newCompPanel
newCompWorkPanel
protected com.sun.java.swing.JPanel newCompWorkPanel
noteTextArea
protected com.sun.java.swing.JTextArea noteTextArea
projRootVObjs
protected com.symantec.itools.vcafe.openapi.VisualObject[] projRootVObjs
radioButtonsGroup
protected com.sun.java.swing.ButtonGroup radioButtonsGroup
sliverImageLabel
protected com.sun.java.swing.JLabel sliverImageLabel
sliverImagePanel
protected com.sun.java.swing.JPanel sliverImagePanel
tableBindingModelVObj
protected com.symantec.itools.vcafe.openapi.VisualObject tableBindingModelVObj
titleTextArea
protected com.sun.java.swing.JTextArea titleTextArea
visualCafe
protected com.symantec.itools.vcafe.openapi.VisualCafe visualCafe
BindingWizardChooseComponentPanel
public BindingWizardChooseComponentPanel()
- Default constructor
BindingWizardChooseComponentPanel
public BindingWizardChooseComponentPanel(BindingWizardController controller)
- The constructor that should be used in the wizard
actionPerformed
public void actionPerformed(ActionEvent evt)
bindExistingComponent
protected void bindExistingComponent()
- This method will databind an already existing visual component
It will generate ONLY BindingModel
cancel
public void cancel()
-
- Overrides:
- cancel in class WizardPanel
createContentPane
protected void createContentPane()
createExistingCompPanel
protected void createExistingCompPanel()
createNewCompPanel
protected void createNewCompPanel()
createNewComponent
protected void createNewComponent()
- Add a new "databound" component
This will create a new Component (may be a JScrollPane), BindingModel, and
eventually a JLabel
createRadioButtons
protected void createRadioButtons()
createSliverImagePanel
protected void createSliverImagePanel()
entering
public void entering()
-
- Overrides:
- entering in class WizardPanel
exiting
public boolean exiting()
-
- Overrides:
- exiting in class WizardPanel
findDataBoundProjectComponents
protected void findDataBoundProjectComponents(VisualObject vObj)
- Build recursively the list with all "databound" components
findLastInsertedChild
public static com.symantec.itools.vcafe.openapi.VisualObject findLastInsertedChild(VisualObject parentVObj)
- Helper method to find the last inserted child.
This method checks ONLY the first level in the hierarchy.
- Parameters:
- parentVObj - is the parent VisualObject
- Returns:
- a reference to the last inserted child
finish
public void finish()
-
- Overrides:
- finish in class WizardPanel
generateCode
protected void generateCode()
- Generate the code for the new components
getNewY
public static int getNewY(VisualObject parentVObj)
- Helper method to find the Y for the component we are going to insert.
This method checks ONLY the first level in the hierarchy.
- Parameters:
- parentVObj - is the parent VisualObject
- Returns:
- the Y coordinate for the new component
initControls
protected void initControls()
introspectProject
protected void introspectProject()
- Introspects the current project to find
all components that could be databound.
It finds the aready bound components as well.
isDataBoundComponent
public static boolean isDataBoundComponent(VisualObject vObj)
-
- Returns:
-
true
if the component is an instance
of one of the JFC component that we can databing
isSupportedContainer
public static boolean isSupportedContainer(VisualObject vObj)
-
- Returns:
-
true
if the component is an instance
of one of the Containers we can insert into
main
public static void main(String[] args)
setBindingModelBeanProperties
public static void setBindingModelBeanProperties(VisualObject bindingModelVObj,
VisualObject vCompVObj,
String bindingName)
-
- Parameters:
- visualObject - is the object we are setting property to
- vCompVObj - is the VisualObject of the visual component we are binding
- bindingName - in the binding name to be used
setCustomProperty
public static void setCustomProperty(VisualObject visualObject,
String propName,
String strValue,
Object objValue,
String javaInitStrValue)
- Sets a property for the given VisualObject.
If the property is not found, nothing is changed.
- Parameters:
- visualObject, - the object to set the propery of.
- propName - the property name.
- strValue - the new value that should be set thru setAsText()
- objValue - the new value that should be set thru setValue()
- javaInitStrValue - the new value that should be returned by getJavaInitializationString()
setObjectReferenceProperty
public static void setObjectReferenceProperty(VisualObject visualObject,
String propName,
int refVisualObjectID)
- Sets a property for the given VisualObject.
If the property is not found, nothing is changed.
- Parameters:
- visualObject, - the object to set the propery of.
- propName - the property name.
- refVisualObjectID - the object ID of the
VisualObject
this property refers to or
DEFAULT_OBJECT_REFERENCED
or NODEFAULT_OBJECT_REFERENCED
.
setProperty
public static void setProperty(VisualObject visualObject,
String propName,
String newValue)
- Sets a property for the given VisualObject.
If the property is not found, nothing is changed.
- Parameters:
- visualObject, - the object to set the propery of.
- propName - the property name.
- newValue - the new value for the property.
All Packages Class Hierarchy This Package Previous Next Index