Class BrolRibbonMainFrame

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.pushingpixels.flamingo.api.ribbon.JRibbonFrame
be.gaudry.swing.ribbon.BrolRibbonMainFrame
All Implemented Interfaces:
IMainFrame, ILookAndFeelCustomize, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
BrolDevAllRibbonMainFrame, BrolEidRibbonMainFrame, EducaBrolAdminRibbonFrame, EducaBrolRibbonFrame, EducaBrolTeacherRibbonFrame, FinderRibbonMainFrame, FontViewerRibbonMainFrame, MediabrolRibbonMainFrame, NavigabrolRibbonMainFrame

public abstract class BrolRibbonMainFrame extends org.pushingpixels.flamingo.api.ribbon.JRibbonFrame implements IMainFrame, PropertyChangeListener, ILookAndFeelCustomize
Since:
1.0 2009, 1.0
Version:
%I%, %G%
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Field Details

    • LRB_PATH

      static final String LRB_PATH
      See Also:
      Constant Field Values
    • optionsTask

      protected org.pushingpixels.flamingo.api.ribbon.RibbonTask optionsTask
    • applicationMenuIcon

      protected org.pushingpixels.flamingo.api.common.icon.ResizableIcon applicationMenuIcon
    • closePanelCButton

      org.pushingpixels.flamingo.api.common.JCommandButton closePanelCButton
    • showPanelCButton

      org.pushingpixels.flamingo.api.common.JCommandButton showPanelCButton
    • showPreviousPanelCButton

      org.pushingpixels.flamingo.api.common.JCommandButton showPreviousPanelCButton
    • showNextPanelCButton

      org.pushingpixels.flamingo.api.common.JCommandButton showNextPanelCButton
    • showConsoleCButton

      org.pushingpixels.flamingo.api.common.JCommandButton showConsoleCButton
  • Constructor Details

    • BrolRibbonMainFrame

      public BrolRibbonMainFrame(boolean showRibbon, boolean showOptionInTask, boolean useDump)
      Parameters:
      showRibbon -
      showOptionInTask - true to show options ribbon on a dedicated task band
      useDump - true to create a dump file when the application close or crash
    • BrolRibbonMainFrame

      public BrolRibbonMainFrame(boolean showRibbon, boolean showOptionInTask)
      Parameters:
      showRibbon -
      showOptionInTask - true to show options ribbon on a dedicated task band
    • BrolRibbonMainFrame

      public BrolRibbonMainFrame(boolean showRibbon)
    • BrolRibbonMainFrame

      public BrolRibbonMainFrame()
  • Method Details

    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • thisWindowClosing

      protected void thisWindowClosing(WindowEvent evt)
    • initSpecificRibbon

      protected abstract void initSpecificRibbon()
      Initialize specific ribbon. This will be called into the showRibbon() method.
      Since:
      0.0.3-SNAPSHOT (Mar 2, 2009)
    • isOptionIntoTask

      protected boolean isOptionIntoTask()
      Returns:
      true if options are displayed into a specific RibbonTask, false to avoid creating a task.
      Since:
      0.0.3-SNAPSHOT (Mar 6, 2009)
      See Also:
      optionIntoTask
    • setOptionIntoTask

      protected void setOptionIntoTask(boolean _optionIntoTask)
      Parameters:
      _optionIntoTask - true if options are displayed into a specific RibbonTask, false to avoid creating a task.
      Since:
      0.0.3-SNAPSHOT (Mar 6, 2009)
      See Also:
      optionIntoTask
    • setApplicationMenuIcon

      public void setApplicationMenuIcon(org.pushingpixels.flamingo.api.common.icon.ResizableIcon icon)
      Sets the icon displayed into the ribbon application menu.
      Parameters:
      icon - the icon to display
    • setIconImages

      public void setIconImages(List<? extends Image> icons)
      Overrides:
      setIconImages in class org.pushingpixels.flamingo.api.ribbon.JRibbonFrame
    • showRibbon

      public void showRibbon()
      Shows the ribbon on the top of the frame.
      After calling the initSpecificRibbon() method, this will call the setLanguage() method to set the localized strings.
    • getCardLayout

      public CardLayout getCardLayout()
      Specified by:
      getCardLayout in interface IMainFrame
      Returns:
      the CardLayout associated to the JPanel returned by the getCardPanel() method.
    • getCardPanel

      public JPanel getCardPanel()
      Specified by:
      getCardPanel in interface IMainFrame
      Returns:
      the JPanel using the CardLayout returned by the getCardLayout() method.
    • getFrame

      public JFrame getFrame()
      Description copied from interface: IMainFrame
      The general contract of getFrame() for a JFrame is like that
       public JFrame getFrame(){
              return this;
       }
       
      Specified by:
      getFrame in interface IMainFrame
      Returns:
    • getStatusBar

      public BrolStatusBar getStatusBar()
      Specified by:
      getStatusBar in interface IMainFrame
      Returns:
      the BrolStatusBar displayed into the JFrame.
    • configureApplicationMenu

      void configureApplicationMenu()
    • getActionBand

      protected org.pushingpixels.flamingo.api.ribbon.JRibbonBand getActionBand()
    • getCustomDisplayBand

      protected org.pushingpixels.flamingo.api.ribbon.JRibbonBand getCustomDisplayBand()
    • getMenuConfigBand

      protected org.pushingpixels.flamingo.api.ribbon.JRibbonBand getMenuConfigBand()
    • showAndCusomizeFrame

      protected void showAndCusomizeFrame(String appName)
    • main

      public static void main(String[] args)
      Main testing.
      Parameters:
      args - Ignored.
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • setLanguage

      protected void setLanguage()
      Since:
      1.0.1-SNAPSHOT (Feb 14 2009)
    • changeUIdefaults

      public void changeUIdefaults()
      Description copied from interface: ILookAndFeelCustomize
      Change some values of the laf with the UIManager#put(Object, Object) method before calling the updateComponentTreeUI method.
      Examples of Swingx properties may be found in the org.jdesktop.swingx.plaf.basicBasicTaskPaneUI package.
      Specified by:
      changeUIdefaults in interface ILookAndFeelCustomize