cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel Class Reference

Inheritance diagram for cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SimpleChoosePanel ()
 SimpleChoosePanel (String borderTitle, String leftRadioTitle, String rightRadioTitle)
 SimpleChoosePanel (String borderTitle, String leftRadioTitle, String rightRadioTitle, String defaultChecked)
void actionPerformed (java.awt.event.ActionEvent actionEvent)
String getChoosenButton ()
void setSelected (String whichOne)
void setLeftText (String text)
void setRightText (String text)
void addConfigurationChangeListener (java.awt.event.ActionListener listener)

Private Member Functions

void initComponent (String borderTitle, String leftRadioTitle, String rightRadioTitle, String defaultChecked)
void initComponent (String borderTitle, String leftRadioTitle, String rightRadioTitle)

Private Attributes

JRadioButton leftRadio = null
JRadioButton rightRadio = null
ActionListener confChangeListener = null

Static Private Attributes

static Logger logger

Detailed Description

Author:
pawlowsk

This is simple choose panel, which is used in configuration window. This class has titled panel with 2 radio buttons


Constructor & Destructor Documentation

cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel::SimpleChoosePanel (  )  [inline]

Create simple choose panel with 2 radio buttons

cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel::SimpleChoosePanel ( String  borderTitle,
String  leftRadioTitle,
String  rightRadioTitle 
) [inline]

Contructor

Parameters:
borderTitle border title for this component
leftRadioTitle 
rightRadioTitle 

References initComponent().

cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel::SimpleChoosePanel ( String  borderTitle,
String  leftRadioTitle,
String  rightRadioTitle,
String  defaultChecked 
) [inline]

Contructor

Parameters:
borderTitle border title for this component
leftRadioTitle 
rightRadioTitle 
defaultChecked which radio should be checked ("left" or "right")

References initComponent().


Member Function Documentation

void cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel::actionPerformed ( java.awt.event.ActionEvent  actionEvent  )  [inline]
void cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel::addConfigurationChangeListener ( java.awt.event.ActionListener  listener  )  [inline]
String cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel::getChoosenButton (  )  [inline]
void cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel::initComponent ( String  borderTitle,
String  leftRadioTitle,
String  rightRadioTitle 
) [inline, private]

This method initializes component.

References initComponent().

void cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel::initComponent ( String  borderTitle,
String  leftRadioTitle,
String  rightRadioTitle,
String  defaultChecked 
) [inline, private]

This methid initialize all component. Creates TitleBorder, radio button and all necesary components.

Parameters:
defaultChecked - which radio button should be default checked "left" for left, "right" for right or null

References leftRadio, and rightRadio.

Referenced by initComponent(), and SimpleChoosePanel().

void cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel::setLeftText ( String  text  )  [inline]

References leftRadio.

void cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel::setRightText ( String  text  )  [inline]

References rightRadio.

void cern::laser::guiplatform::windows::behaviour::SimpleChoosePanel::setSelected ( String  whichOne  )  [inline]

This method set checked left of right radio button.

Parameters:
whichOne - "left" for left radio button, "right" for right radio button

References leftRadio, and rightRadio.

Referenced by cern::laser::guiplatform::windows::behaviour::ConfigureBehaviourPanel::reset(), and cern::laser::guiplatform::windows::behaviour::ConfigureBehaviourPanel::updateBehaviour().


Member Data Documentation

listener which is able to change Save button on ConfigurationPanel

Referenced by actionPerformed(), and addConfigurationChangeListener().

Initial value:
 
        LogFactory.getLogger(SimpleChoosePanel.class.getName())

logger

Referenced by actionPerformed().

rght rafio button

Referenced by actionPerformed(), initComponent(), setRightText(), and setSelected().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2