

Classes | |
| class | FrameWindowListener |
Public Member Functions | |
| Frame (String[] params) throws PanelException | |
| void | disconnectACSComponentClient () |
Static Public Member Functions | |
| static void | printUsage (String cmd) |
| static void | main (String[] args) |
Private Member Functions | |
| void | initialize (IPanel pnl) throws PanelException |
| IPanel | loadPanel (String className) throws PanelException |
| void | connectACSComponentClient (String className) throws PanelException |
| void | close () |
Private Attributes | |
| IPanel | panel |
| AdvancedComponentClient | client = null |
| Logger | logger = null |
| ContainerServices | contSvc = null |
| FrameWindowListener | windowListener = new FrameWindowListener() |
The main frame of the application. It is the main window showing the panel inside.
The panel must implement the IPanel interface and extend JComponent. It can also be a JRootPane in order to define its own menu bar.
| alma::acs::gui::util::panel::Frame::Frame | ( | String[] | params | ) | throws PanelException [inline] |
Build the main window with the component inside.
The main window catches window events in order to be able to close the panel before closing.
| params | A string of paramters. The first parameter is the component to show in the window. |
References connectACSComponentClient(), contSvc, initialize(), loadPanel(), panel, alma::acs::gui::util::panel::IPanel::setACSContainerServices(), alma::acs::gui::util::panel::IPanel::start(), and windowListener.
Referenced by main().
| void alma::acs::gui::util::panel::Frame::close | ( | ) | [inline, private] |
Release all the resources This is the last operation before closing
References disconnectACSComponentClient(), logger, panel, alma::acs::gui::util::panel::IPanel::stop(), and windowListener.
Referenced by alma::acs::gui::util::panel::Frame::FrameWindowListener::windowClosing().
| void alma::acs::gui::util::panel::Frame::connectACSComponentClient | ( | String | className | ) | throws PanelException [inline, private] |
Connect to ACS as component client. It connects the client and the logger.
| className | The name of the class of the panel to show in the frame |
| Exception | In case of failure connecting to ACS |
References client, contSvc, alma::acs::component::client::ComponentClient::getContainerServices(), alma::acs::container::ContainerServicesBase::getLogger(), and logger.
Referenced by Frame().
| void alma::acs::gui::util::panel::Frame::disconnectACSComponentClient | ( | ) | [inline] |
| void alma::acs::gui::util::panel::Frame::initialize | ( | IPanel | pnl | ) | throws PanelException [inline, private] |
| IPanel alma::acs::gui::util::panel::Frame::loadPanel | ( | String | className | ) | throws PanelException [inline, private] |
Load the panel whose class name is in the parameter
| className | The class name of the poanel to be shown in the main window |
Referenced by Frame().
| static void alma::acs::gui::util::panel::Frame::main | ( | String[] | args | ) | [inline, static] |
The starting point of the application: build the window and load the panel.
| args | A list of params. The first parameter is the name of the panel to load. |
References Frame(), and printUsage().
| static void alma::acs::gui::util::panel::Frame::printUsage | ( | String | cmd | ) | [inline, static] |
AdvancedComponentClient alma::acs::gui::util::panel::Frame::client = null [private] |
ContainerServices alma::acs::gui::util::panel::Frame::contSvc = null [private] |
Logger alma::acs::gui::util::panel::Frame::logger = null [private] |
Referenced by close(), Frame(), and alma::acs::gui::util::panel::Frame::FrameWindowListener::windowClosed().
FrameWindowListener alma::acs::gui::util::panel::Frame::windowListener = new FrameWindowListener() [private] |
Referenced by close(), Frame(), and alma::acs::gui::util::panel::Frame::FrameWindowListener::windowClosed().
1.6.2