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
-
FLOWED_VIEW
- Indicates a view style with a flow layout.
-
GRID_COLUMNS_VIEW
- Indicates a view style of a single row with
multiple columns.
-
GRID_ROWS_VIEW
- Indicates a view style of a single column with
multiple rows.
-
ManagedBeanSelectorPanel()
- Default constructor.
-
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.
-
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.
-
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.
-
destruct()
- Destroys the items owned by this ManagedBeanSelectorPanel instance.
-
getBeanBagView()
- Gets the BeanBagView object owned by the ManagedBeanSelectorPanel instance.
-
getPreferredSize()
- Gets the preferred size of the view.
-
getRepositoryList()
- Gets the file list owned by the ManagedBeanSelectorPanel instance used for adding
repositories to the view.
-
getViewStyle()
- Gets the view style of the owned BeanBagView object.
-
init()
- Initializes the ManagedBeanSelectorPanel instance.
-
setBounds(int, int, int, int)
- Sets the boundaries of the view.
-
setSize(int, int)
- Sets the size of the view.
-
setViewStyle(int)
- Sets the view style of the owned BeanBagView object.
FLOWED_VIEW
public static final int FLOWED_VIEW
- Indicates a view style with a flow layout.
GRID_ROWS_VIEW
public static final int GRID_ROWS_VIEW
- Indicates a view style of a single column with
multiple rows.
GRID_COLUMNS_VIEW
public static final int GRID_COLUMNS_VIEW
- Indicates a view style of a single row with
multiple columns.
ManagedBeanSelectorPanel
protected ManagedBeanSelectorPanel()
- Default constructor.
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
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
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
init
protected void init()
- Initializes the ManagedBeanSelectorPanel instance. This method is called automatically.
getPreferredSize
public Dimension getPreferredSize()
- Gets the preferred size of the view.
- Returns:
- The preferred size of the view.
- Overrides:
- getPreferredSize in class Container
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
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
getBeanBagView
public BeanBagView getBeanBagView()
- Gets the BeanBagView object owned by the ManagedBeanSelectorPanel instance.
- Returns:
- The owned BeanBagView object.
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.
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.
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.
destruct
public synchronized void destruct()
- Destroys the items owned by this ManagedBeanSelectorPanel instance.
All Packages Class Hierarchy This Package Previous Next Index