Package com.meapsoft.gui.composers

Examples of com.meapsoft.gui.composers.ComposerSettingsPanel


   
    //remove all the old settings first
    mSettingsWrapper.removeAll();
   
    //get the settings panel
    ComposerSettingsPanel settingsPanel = lbl.getSettingsPanel();
   
    //try to do all this here
    try
    {
      //make the settings label visible
      mSettingsLbl.setVisible(true);
     
      //add this new panel
      mSettingsWrapper.add(settingsPanel);
     
      //give this panel a size
      settingsPanel.setSize(500, 300);
     
      //if we don't have any components, get rid
      //of the settings label, so the user does
      //not think they made a mistake
      if(settingsPanel.getComponentCount() == 0)
      {
        mSettingsLbl.setVisible(false);
      }
    }
    catch(Exception ex)
View Full Code Here


    {
    //get the selected value here
    ComposerLabel lbl = (ComposerLabel)mComposerList.getSelectedValue();
 
    //get the settings panel
    ComposerSettingsPanel settingsPanel = lbl.getSettingsPanel();
   
    //create a composer to work with here
    Composer composer;
   
    //initialize the composer here
    //we should always have a settings panel for each composer
    try
    {
      //initialze the composer here
      int error = settingsPanel.initComposer();
     
      //if we have an error, return
      if(error == -1)
      {
        return -1;
      }
     
      composer = settingsPanel.getComposer();
    }
    catch(Exception e)
    {
      GUIUtils.ShowDialog(e, lbl.getName() + " does not have a settings panel", GUIUtils.MESSAGE, mMainScreen)
      return -1;
View Full Code Here

TOP

Related Classes of com.meapsoft.gui.composers.ComposerSettingsPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.