Interface IPanelGroup
- All Known Implementing Classes:
AbstractPanelGroup,TabbedPanel,TreePanel
All kind of panels which support a group of IPanel must
implement this interface.
- Version:
- 15/10/2007
- Author:
- Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept()Notifies this panel of an accept action.voidAdds anotherIPanelto this group.voidapply()Notifies this panel of an apply action.voidcancel()Notifies this panel of a cancel action.Gets a reference to the active panel in this group.intReturns the number of panels registered in this group.intReturns the number of panels registered in this group that are in GUI.Gets the properties associated to this group of panels.Gets the object that has a a ''semantically'' or ''conceptually'' relation to this panel.booleanDetermines if the last notification received has been IPanel.accept().booleanisPanelInGUI(IPanel panel) Returnstrueif the panel as parameter belongs to a this group and it's loaded in the graphical user interface; otherwise returnsfalse.voidloadPanels(IPanelGroupLoader loader) Tries to load as most as possible panels using anIPanelGroupLoader.voidremovePanel(IPanel panel) Removes anIPanelfrom this group.voidsetPanelInGUI(IPanel panel, boolean b) Changes the visibility of an existent panel of this group.voidsetParentPanelGroup(IPanelGroup parent) Sets the parent of this component.voidupdateReference(Object reference) Updates the reference of all elements of the group with the new one.
-
Method Details
-
addPanel
Adds another
IPanelto this group.- Parameters:
panel- theIPanelto add- Throws:
EmptyPanelGroupException- if there was no panel loaded and tries to add a new one, launches this exception if the panel to add hasn't been registered to this component and then, no remains without panelsEmptyPanelGroupGUIException- if there was no panel loaded and tries to add a new one, launches this exception if the panel to add hasn't been set to this component graphical interface and then, no remains without panels in its graphical interfaceorg.gvsig.tools.exception.BaseException- See Also:
-
removePanel
Removes an
IPanelfrom this group.- Parameters:
panel- theIPanelto remove- See Also:
-
loadPanels
void loadPanels(IPanelGroupLoader loader) throws ListCouldntAddPanelException, EmptyPanelGroupException, EmptyPanelGroupGUIException Tries to load as most as possible panels using an
IPanelGroupLoader.- Parameters:
loader- used to load the panels into this group- Throws:
ListCouldntAddPanelException- list with all exceptions produced loading and adding the panelsEmptyPanelGroupException- launched if there was no exception during the loading and adding processes but there is no panel registered finally in this componentEmptyPanelGroupGUIException- launched if there was no exception during the loading and adding processes there is at least one panel registered, but finally none of them is in the graphical interface of this component- See Also:
-
getActivePanel
IPanel getActivePanel()Gets a reference to the active panel in this group.
- Returns:
- a reference to the active panel, or
nullif there is no any active
-
getProperties
Hashtable getProperties()Gets the properties associated to this group of panels.
- Returns:
- properties associated to this group of panels
-
getReference
Object getReference()Gets the object that has a a ''semantically'' or ''conceptually'' relation to this panel.
- Returns:
- type of object that has reference this panel, or
nullif there has reference to no object
-
updateReference
Updates the reference of all elements of the group with the new one.
- Parameters:
reference- type of object that has reference this panel, ornullif there has reference to no object
-
setPanelInGUI
Changes the visibility of an existent panel of this group. If a panel changes to invisible, then that panel won't be accessible by the user interface. But if changes to visible and was invisible before, then will appear at the same position it was in the user interface. The position is according the order of the insertion at the group. Anyway, the group will have that panel.
- Parameters:
panel- reference to the panel with visibility has changed.b- the new visibility for that panel.
-
isPanelInGUI
Returns
trueif the panel as parameter belongs to a this group and it's loaded in the graphical user interface; otherwise returnsfalse.- Returns:
trueif the panel as parameter belongs to a this group and it's loaded in the graphical user interface; otherwise returnsfalse
-
getPanelCount
int getPanelCount()Returns the number of panels registered in this group.
- Returns:
- number of panels registered in this group
-
getPanelInGUICount
int getPanelInGUICount()Returns the number of panels registered in this group that are in GUI.
- Returns:
- number of panels registered in this group that are in GUI
-
isAccepted
boolean isAccepted()Determines if the last notification received has been IPanel.accept().
- Returns:
trueif that has been the last notification received,falseotherwise
-
setParentPanelGroup
Sets the parent of this component. That object must be another
IPanelGroupcomponent.- Parameters:
parent- parent of this component
-
accept
void accept()Notifies this panel of an accept action.
-
apply
void apply()Notifies this panel of an apply action.
-
cancel
void cancel()Notifies this panel of a cancel action.
-