com.sygem.swing.jslidemenu
Class PanelModel

java.lang.Object
  extended bycom.sygem.swing.jslidemenu.PanelModel
Direct Known Subclasses:
DefaultPanelModel

public abstract class PanelModel
extends java.lang.Object

Abstract class specifying the methods needed to implement a JSlideMenu data model.

The PanelDataListeners are also handled by this class.

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

Version:
1.0

Constructor Summary
PanelModel()
           
 
Method Summary
abstract  void addPanel(SlideMenuPanel panel)
          Abstract method for adding categories to the model.
 void addPanelDataListener(PanelDataListener l)
          Adds a PanelDataListener to this model.
abstract  SlideMenuPanel[] getPanels()
          Abstract method for retrieving all entries from the JSlideMenu data model.
 void removeAll()
          Removes all panels from this model.
abstract  void removePanel(SlideMenuPanel panel)
          Abstract method for removing panels from the model.
 void removePanelDataListener(PanelDataListener l)
          Removes a PanelDataListener from this model.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanelModel

public PanelModel()
Method Detail

addPanel

public abstract void addPanel(SlideMenuPanel panel)
Abstract method for adding categories to the model. Should fire a PanelDataEvent.

Parameters:
panel - The SlideMenuPanel to add to this model
See Also:
SlideMenuPanel

addPanelDataListener

public void addPanelDataListener(PanelDataListener l)
Adds a PanelDataListener to this model. This listener will be informed every time the data in the model is changed.

Parameters:
l - The PanelDataListener to add
See Also:
PanelDataListener

getPanels

public abstract SlideMenuPanel[] getPanels()
Abstract method for retrieving all entries from the JSlideMenu data model.

Returns:
An array of SlideMenuPanel objects
See Also:
SlideMenuPanel

removeAll

public void removeAll()
Removes all panels from this model. As it calls removePanel for each panel in the model, multiple PanelDataEvent's may be generated.

See Also:
removePanel(SlideMenuPanel), SlideMenuPanel

removePanel

public abstract void removePanel(SlideMenuPanel panel)
Abstract method for removing panels from the model. Should fire a PanelDataEvent.

Parameters:
panel - SlideMenuPanel
See Also:
SlideMenuPanel

removePanelDataListener

public void removePanelDataListener(PanelDataListener l)
Removes a PanelDataListener from this model.

Parameters:
l - The PanelDataListener to remove
See Also:
PanelDataListener


Copyright © 2004 SyGem Software. All Rights Reserved.