Interface IPanel
- All Superinterfaces:
Comparable<IPanel>
- All Known Implementing Classes:
AbstractFilterQueryJPanel,AbstractPanel,FilterQueryJPanel,TableFilterQueryJPanel,TreePanel.DefaultPanel
Common interface for all kinds of AbstractPanel.
An IPanel has:
- Three identifiers:
- ID: (optional) identifies neutrally the panel.
- Label: identifier of the panel, used by a
AbstractPanelGroup. - LabelGroup: identifier of the panel used to group together different
IPanelpanels of aAbstractPanelGroup. - An optional reference to an object that is related ''semantically'' or ''conceptually'' to this panel (Ex. this panel is about some properties of a raster layer).
- Version:
- 15/10/2007
- Author:
- Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept()Notifies to this panel of an accept action.voidapply()Notifies this panel of an apply action.voidcancel()Notifies this panel of a cancel action.getID()Gets the panel identifier.getLabel()Gets the identifier of the panel used by aAbstractPanelGroup.Gets the identifier of the panel used to group together differentIPanelpanels in aAbstractPanelGroup.Gets a reference to the object that contains the group which this panel is a member.intThe priority of this properties page.Gets the object that has a ''semantically'' or ''conceptually'' relation to this panel, this is used to groupIPanelpanels on aIPanelGroupobject.booleanDetermines if this panel has changed since it was created, or applied (or accepted or cancelled).booleanGets if this panel will always be applied and accepted (by default), or only when has changed.booleanReturnstrueif this panel belongs to a 'panel group' and it's loaded in the graphical user interface of that component; otherwise returnsfalse.booleanReturns if this panel remains with its initial preferred size of it has been changed.voidResets this panel changed status to its initial value.voidselected()Notifies this panel that has been selected at theAbstractPanelGroupvoidsetAlwaysApplicable(boolean b) Sets if this panel will always be applied and accepted (by default), or only when has changed.voidSets the identifier of the panel used by aAbstractPanelGroup.voidsetInGroupGUI(boolean b) If this panel belongs to a 'panel group', changes its visibility at the interface of the panel group.voidSets the identifier of the panel used by aAbstractPanelGroup.voidsetLabelGroup(String labelGroup) Sets the identifier of the panel used to group together differentIPanelpanels of aAbstractPanelGroup.voidsetPanelGroup(AbstractPanelGroup panelGroup) Sets a reference to the object that contains the group which this panel is a member.voidsetPriority(int priority) Sets priority of this properties page.voidsetReference(Object ref) Sets a reference to an object that is ''semantically' or 'contextually' related to this panel.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getID
String getID()Gets the panel identifier.
.- Returns:
- panel identifier, or
nullif undefined - See Also:
-
getLabel
String getLabel()Gets the identifier of the panel used by a
AbstractPanelGroup.- Returns:
- panel label identifier, or
nullif undefined - See Also:
-
getLabelGroup
String getLabelGroup()Gets the identifier of the panel used to group together different
IPanelpanels in aAbstractPanelGroup.- Returns:
- panel label group identifier, or
nullif undefined - See Also:
-
setID
Sets the identifier of the panel used by a
AbstractPanelGroup.- Parameters:
id- panel label identifier, ornullif undefined- See Also:
-
setLabel
Sets the identifier of the panel used by a
AbstractPanelGroup.- Parameters:
label- panel label identifier, ornullif undefined- See Also:
-
setLabelGroup
Sets the identifier of the panel used to group together different
IPanelpanels of aAbstractPanelGroup.- Parameters:
labelGroup- label group identifier, ornullif undefined- See Also:
-
getReference
Object getReference()Gets the object that has a ''semantically'' or ''conceptually'' relation to this panel, this is used to group
IPanelpanels on aIPanelGroupobject.- Returns:
- object that has reference this panel, or
nullif there has reference to no object - See Also:
-
setReference
Sets a reference to an object that is ''semantically' or 'contextually' related to this panel.
- Parameters:
ref- an object- See Also:
-
getPanelGroup
AbstractPanelGroup getPanelGroup()Gets a reference to the object that contains the group which this panel is a member.
- Returns:
- an object that contains this panel's group
- See Also:
-
setPanelGroup
Sets a reference to the object that contains the group which this panel is a member.
- Parameters:
panelGroup- object that contains this panel's group- See Also:
-
setInGroupGUI
void setInGroupGUI(boolean b) If this panel belongs to a 'panel group', changes its visibility at the interface of the panel group. If changes to invisible, then this 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 this panel.
- Parameters:
b- the new visibility for that panel.
-
isInGroupGUI
boolean isInGroupGUI()Returns
trueif this panel belongs to a 'panel group' and it's loaded in the graphical user interface of that component; otherwise returnsfalse.- Returns:
trueif this panel belongs to a 'panel group' and it's loaded in the graphical user interface of that component
-
remainsWithItsDefaultPreferredSize
boolean remainsWithItsDefaultPreferredSize()Returns if this panel remains with its initial preferred size of it has been changed.
- Returns:
- if this panel remains with its initial preferred size of it has been changed
-
accept
void accept()Notifies to 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.
-
selected
void selected()Notifies this panel that has been selected at the
AbstractPanelGroup -
hasChanged
boolean hasChanged()Determines if this panel has changed since it was created, or applied (or accepted or cancelled). The programmer of each panel will be whom would set to
truethat a panel has changed.- Returns:
trueif this panel has changed since it was created, or applied (or accepted or cancelled); otherwisefalse
-
resetChangedStatus
void resetChangedStatus()Resets this panel changed status to its initial value.
-
setAlwaysApplicable
void setAlwaysApplicable(boolean b) Sets if this panel will always be applied and accepted (by default), or only when has changed.
- Parameters:
b- if this panel will always be applied and accepted, or only when has changed- See Also:
-
isAlwaysApplicable
boolean isAlwaysApplicable()Gets if this panel will always be applied and accepted (by default), or only when has changed.
- Returns:
- if this panel will always be applied and accepted, or only when has changed
- See Also:
-
getPriority
int getPriority()The priority of this properties page. When more high is the priority more to the left are set properties page.- Returns:
- the priority of the properties page
-
setPriority
void setPriority(int priority) Sets priority of this properties page. When more high is the priority more to the left are set properties page.
-