Package jpicedt.ui
Class MDIManager.DockablePanel
- java.lang.Object
-
- jpicedt.ui.MDIManager.DockablePanel
-
- Enclosing class:
- MDIManager
public class MDIManager.DockablePanel extends java.lang.ObjectA wrapper for dockable panels, e.g. the attribute editor or the toolkit palette. The UI is rendered by a MDIComponent delegate (seegetMDIDelegate) that is created at init time by relying on the factory methodcreateMDIComponent.
-
-
Constructor Summary
Constructors Constructor Description DockablePanel(javax.swing.JPanel pane, java.lang.String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MDIManager.MDIComponentgetMDIDelegate()returns the MDIComponent that renders the UI of this DockablePanelvoidsetVisible(boolean v)set the visible state of this DockablePanel, first trying to fetch the geometrical aspect from the Properties object given in the constructor.voidtoggleVisible()returns true if this DockablePanel is currently visible public boolean isVisible(){ return mdiComponent.isVisible(); }
-
-
-
Constructor Detail
-
DockablePanel
public DockablePanel(javax.swing.JPanel pane, java.lang.String key)- Parameters:
pane- the content of this DockablePanelkey- 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
-
getMDIDelegate
public MDIManager.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).
-
-