All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.mb.ManagedBeanSelectorPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.ibm.beans.mb.ManagedBeanSelectorPanel

public class ManagedBeanSelectorPanel
extends Panel
This class creates a selector panel containing a file list that allows for the selection of repositories and displays their contents in an associated desktop view.

See Also:
FileList, DesktopBeanBagView

Variable Index

 o FLOWED_VIEW
Indicates a view style with a flow layout.
 o GRID_COLUMNS_VIEW
Indicates a view style of a single row with multiple columns.
 o GRID_ROWS_VIEW
Indicates a view style of a single column with multiple rows.

Constructor Index

 o ManagedBeanSelectorPanel()
Default constructor.
 o ManagedBeanSelectorPanel(String[], BeanBagModel)
Constructs a selection panel containing a file list and the add repository buttons and displays the desktop view of the repository model as a flow layout.
 o ManagedBeanSelectorPanel(String[], BeanBagModel, boolean, String, boolean)
Constructs a selection panel containing a file list and optional add repository buttons and displays the desktop view of the repository model as a flow layout.
 o ManagedBeanSelectorPanel(String[], BeanBagModel, boolean, String, boolean, int)
Constructs a selection panel containing the file list of specified repositories and optional add buttons and displays the desktop view of the repository model using the specified style.

Method Index

 o destruct()
Destroys the items owned by this ManagedBeanSelectorPanel instance.
 o getBeanBagView()
Gets the BeanBagView object owned by the ManagedBeanSelectorPanel instance.
 o getPreferredSize()
Gets the preferred size of the view.
 o getRepositoryList()
Gets the file list owned by the ManagedBeanSelectorPanel instance used for adding repositories to the view.
 o getViewStyle()
Gets the view style of the owned BeanBagView object.
 o init()
Initializes the ManagedBeanSelectorPanel instance.
 o setBounds(int, int, int, int)
Sets the boundaries of the view.
 o setSize(int, int)
Sets the size of the view.
 o setViewStyle(int)
Sets the view style of the owned BeanBagView object.

Variables

 o FLOWED_VIEW
 public static final int FLOWED_VIEW
Indicates a view style with a flow layout.

 o GRID_ROWS_VIEW
 public static final int GRID_ROWS_VIEW
Indicates a view style of a single column with multiple rows.

 o GRID_COLUMNS_VIEW
 public static final int GRID_COLUMNS_VIEW
Indicates a view style of a single row with multiple columns.

Constructors

 o ManagedBeanSelectorPanel
 protected ManagedBeanSelectorPanel()
Default constructor.

 o ManagedBeanSelectorPanel
 public ManagedBeanSelectorPanel(String repositoryNames[],
                                 BeanBagModel beanbagModel)
Constructs a selection panel containing a file list and the add repository buttons and displays the desktop view of the repository model as a flow layout.

Parameters:
repositoryNames - An array of repository names for inclusion inthe file list.
beanbagModel -
The model to use when loading the ManagedBean objects from the repositories to the desktop.
See Also:
BeanBagModel, RepositoryModel
 o ManagedBeanSelectorPanel
 public ManagedBeanSelectorPanel(String repositoryNames[],
                                 BeanBagModel beanbagModel,
                                 boolean addFileButton,
                                 String filter,
                                 boolean addDirButton)
Constructs a selection panel containing a file list and optional add repository buttons and displays the desktop view of the repository model as a flow layout.

Parameters:
repositoryNames - An array of repository names for inclusion in the file list.
beanbagModel - The model to use when loading the ManagedBean objects from repositories to the desktop view.
addFileButton - true to add the Add File button to the file list control; false otherwise. If added, clicking on this button opens a File dialog where the user can specify a file-based repository.
filter - A string specifying a wildcard-style filter for displaying files in the file dialog.
addDirButton - true to add the Add Directory button to the file list control; false otherwise. If added, clicking on this button opens a File dialog where the user can specify a directory-based repository.
See Also:
BeanBagModel, RepositoryModel
 o ManagedBeanSelectorPanel
 public ManagedBeanSelectorPanel(String repositoryNames[],
                                 BeanBagModel beanbagModel,
                                 boolean addFileButton,
                                 String filter,
                                 boolean addDirButton,
                                 int viewStyle)
Constructs a selection panel containing the file list of specified repositories and optional add buttons and displays the desktop view of the repository model using the specified style.

Parameters:
repositoryNames - An array of repository names for inclusion in the file list.
beanbagModel - The model to use when loading the ManagedBean objects from repositories to the desktop view.
addFileButton - true to add the Add File button to the file list control; false otherwise. If added, clicking on this button opens a File dialog where the user can specify a file-based repository.
filter - A string specifying a wildcard-style filter for displaying files in the file dialog.
addDirButton - tt>true to add the Add Directory button to the file list control; false otherwise. If added, clicking on this button opens a File dialog where the user can specify a directory-based repository.
viewStyle - The preferred style for the desktop view. This constant can be FLOWED_VIEW, GRID_COLUMNS_VIEW, or GRID_ROWS_VIEW.
See Also:
BeanBagModel, RepositoryModel

Methods

 o init
 protected void init()
Initializes the ManagedBeanSelectorPanel instance. This method is called automatically.

 o getPreferredSize
 public Dimension getPreferredSize()
Gets the preferred size of the view.

Returns:
The preferred size of the view.
Overrides:
getPreferredSize in class Container
 o setSize
 public void setSize(int width,
                     int height)
Sets the size of the view.

Parameters:
width - The width of the view.
height - The height of the view.
Overrides:
setSize in class Component
 o setBounds
 public void setBounds(int x,
                       int y,
                       int width,
                       int height)
Sets the boundaries of the view.

Parameters:
x - The new x-coordinate of the view.
y - The new y-coordinate of the view.
width - The width of the view.
height - The height of the view.
Overrides:
setBounds in class Component
 o getBeanBagView
 public BeanBagView getBeanBagView()
Gets the BeanBagView object owned by the ManagedBeanSelectorPanel instance.

Returns:
The owned BeanBagView object.
 o getRepositoryList
 public FileList getRepositoryList()
Gets the file list owned by the ManagedBeanSelectorPanel instance used for adding repositories to the view.

Returns:
The owned file list.
 o setViewStyle
 public void setViewStyle(int viewStyle)
Sets the view style of the owned BeanBagView object.

Parameters:
viewStyle - The style of the owned BeanBagView object. This constant can be FLOWED_LAYOUT, GRID_COLUMNS_VIEW, or GRID_ROWS_VIEW.
 o getViewStyle
 public int getViewStyle()
Gets the view style of the owned BeanBagView object.

Returns:
The constant describing the appearance of the owned BeanBagView object. This value is FLOWED_LAYOUT, GRID_COLUMNS_VIEW, or GRID_ROWS_VIEW.
 o destruct
 public synchronized void destruct()
Destroys the items owned by this ManagedBeanSelectorPanel instance.


All Packages  Class Hierarchy  This Package  Previous  Next  Index