com.sygem.swing.jslidemenu
Class DefaultPanelModel

java.lang.Object
  extended bycom.sygem.swing.jslidemenu.PanelModel
      extended bycom.sygem.swing.jslidemenu.DefaultPanelModel

public class DefaultPanelModel
extends PanelModel

A default implementation of a PanelModel. One of these is created by the JSlideMenu to store the panels. Uses a Vector to store the data, and fires PanelDataEvents to the JSlideMenu when categories are added or removed.

Title: JSlideMenu
Description: A Swing component allowing animated panels containing any components
Copyright: Copyright (c) 2004
Company: SyGem Software

Version:
1.0

Constructor Summary
DefaultPanelModel()
          Constructs the (empty) DefaultPanelModel.
 
Method Summary
 void addPanel(SlideMenuPanel panel)
          Adds a SlideMenuPanel to this data model.
 SlideMenuPanel[] getPanels()
          Returns an array containing all of the SlideMenuPanels currently present in this model.
 void removePanel(SlideMenuPanel panel)
          Removes a Panel from this data model.
 
Methods inherited from class com.sygem.swing.jslidemenu.PanelModel
addPanelDataListener, removeAll, removePanelDataListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPanelModel

public DefaultPanelModel()
Constructs the (empty) DefaultPanelModel.

Method Detail

addPanel

public void addPanel(SlideMenuPanel panel)
Adds a SlideMenuPanel to this data model.

Specified by:
addPanel in class PanelModel
Parameters:
panel - The SlideMenuPanel to be added
See Also:
SlideMenuPanel

getPanels

public SlideMenuPanel[] getPanels()
Returns an array containing all of the SlideMenuPanels currently present in this model.

Specified by:
getPanels in class PanelModel
Returns:
A SlideMenuPanel array
See Also:
SlideMenuPanel

removePanel

public void removePanel(SlideMenuPanel panel)
Removes a Panel from this data model.

Specified by:
removePanel in class PanelModel
Parameters:
panel - The SlideMenuPanel to be removed
See Also:
SlideMenuPanel


Copyright © 2004 SyGem Software. All Rights Reserved.