http://www.jpicedt.org

jpicedt.ui
Class MDIManager.DockablePanel

java.lang.Object
  extended by jpicedt.ui.MDIManager.DockablePanel
Enclosing class:
MDIManager

public class MDIManager.DockablePanel
extends Object

A wrapper for dockable panels, e.g. the attribute editor or the toolkit palette. The UI is rendered by a MDIComponent delegate (see getMDIDelegate) that is created at init time by relying on the factory method createMDIComponent.


Field Summary
protected  EventListenerList listenerList
           
 
Constructor Summary
MDIManager.DockablePanel(JPanel pane, String key)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          ajoute un PropertyChangeListener à la liste des auditeurs.
 String getKey()
           
 MDIComponent getMDIDelegate()
          returns the MDIComponent that renders the UI of this DockablePanel.
 void removePropertyChangeListener(PropertyChangeListener l)
          ôte un PropertyChangeListener du DockablePanel.
 void setVisible(boolean v)
          set the visible state of this DockablePanel, first trying to fetch the geometrical aspect from the Properties object given in the constructor.
 void toggleVisible()
          returns true if this DockablePanel is currently visible public boolean isVisible(){ return mdiComponent.isVisible(); }
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerList

protected EventListenerList listenerList
Constructor Detail

MDIManager.DockablePanel

public MDIManager.DockablePanel(JPanel pane,
                                String key)
Parameters:
pane - the content of this DockablePanel
key - used to set the title (after proper i18n'ing) of the MDIComponent which renders the UI, and for building keys used to retrieve the geometry from JPicEdt's preferences.
Method Detail

getKey

public String getKey()

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
ajoute un PropertyChangeListener à la liste des auditeurs.


removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
ôte un PropertyChangeListener du DockablePanel.


getMDIDelegate

public MDIComponent getMDIDelegate()
returns the MDIComponent that renders the UI of this DockablePanel.


toggleVisible

public void toggleVisible()
returns true if this DockablePanel is currently visible public boolean isVisible(){ return mdiComponent.isVisible(); }


setVisible

public void setVisible(boolean v)
set the visible state of this DockablePanel, first trying to fetch the geometrical aspect from the Properties object given in the constructor. This is done on first call only (see "packed" flag).


http://www.jpicedt.org

Submit a bug : syd@jpicedt.org