Example #1
0
  /*
   * (non-Javadoc)
   *
   * @see
   * com.intel.hpc.stl.ui.common.JCard#addControlButtons(javax.swing.JToolBar)
   */
  @Override
  protected void addControlButtons(JToolBar toolBar) {
    styleBtn = ComponentFactory.getImageButton(UIImages.BAR_ICON.getImageIcon());
    styleBtn.setToolTipText(UILabels.STL40002_TO_BAR.getDescription());
    toolBar.add(styleBtn);

    super.addControlButtons(toolBar);
  }
Example #2
0
 /*
  * (non-Javadoc)
  *
  * @see
  * com.intel.stl.ui.common.view.JCardView#setCardListener(com.intel.stl.
  * ui.common.view.ICardListener)
  */
 @Override
 public void setCardListener(final IChartStyleListener listener) {
   super.setCardListener(listener);
   styleBtn.addActionListener(
       new ActionListener() {
         @Override
         public void actionPerformed(ActionEvent e) {
           listener.onStyleChange(style);
         }
       });
 }