com.jeta.open.gui.framework
Interface JETAContainer

All Known Implementing Classes:
FormPanel, JETAPanel

public interface JETAContainer

An interface for containers ( Panels, Dialogs, InternalFrames, and Frames). JETAControllers work with JETAContainers.


Method Summary
 void enableComponent(String commandId, boolean bEnable)
          Enables/Disables the menu/toolbar button associated with the commandid
 Component getComponentByName(String compName)
          Locates the first component found in this container hierarchy that has the given name.
 Collection getComponentsByName(String compName)
          Locates all components found in this container hierarchy that has the given name.
 UIDirector getUIDirector()
          Returns the UIDirector for this container.
 

Method Detail

enableComponent

void enableComponent(String commandId,
                     boolean bEnable)
Enables/Disables the menu/toolbar button associated with the commandid

Parameters:
commandId - the id of the command whose button to enable/disable
bEnable - true/false to enable/disable

getComponentByName

Component getComponentByName(String compName)
Locates the first component found in this container hierarchy that has the given name. This will recursively search into child containers as well. If no component is found with the given name, null is returned.

Parameters:
compName - the name of the component to search for
Returns:
the named component

getComponentsByName

Collection getComponentsByName(String compName)
Locates all components found in this container hierarchy that has the given name. This will recursively search into child containers as well. This method is useful for frame windows that can have multiple components with the same name. For example, a menu item and toolbar button for the same command would have the same name.

Parameters:
compName - the name of the components to search for
Returns:
a collection of
See Also:
objects that have the given name.

getUIDirector

UIDirector getUIDirector()
Returns the UIDirector for this container. UIDirectors are part of this framework and are responsible for enabling/disabling components based on the program state. For example, menu items and toolbar buttons must be enabled or disabled depending on the current state of the frame window. UIDirectors handle this logic.

Returns:
the UIDirector


Copyright © 2005-2007 Jeff Tassin & Todd Viegut. All Rights Reserved.