public abstract class AbstractGroup extends java.lang.Object implements IGroup
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
groupName
The name of this group.
|
Constructor and Description |
---|
AbstractGroup(java.lang.String groupName)
This construct a group with
groupName group name. |
AbstractGroup(java.lang.String groupName,
org.eclipse.jface.dialogs.IDialogSettings dialogSettings)
This construct a group with
groupName group name. |
Modifier and Type | Method and Description |
---|---|
void |
addGroupListener(IGroupListener listener)
Adds the given group listener in the listeners list of this group.
|
void |
createContent(org.eclipse.swt.widgets.Composite parent,
int numColumns)
Creates the content i.e., all necessary fields of the group.
|
void |
createContent(org.eclipse.swt.widgets.Composite parent,
int numColumns,
boolean suppressGroupFrame)
Creates the content i.e., all necessary fields of the group.
|
protected abstract void |
doCreateContent(org.eclipse.swt.widgets.Composite parent,
int numColumns)
Creates the content i.e., all required fields of the group.
|
protected org.eclipse.jface.dialogs.IDialogSettings |
getDialogSettings()
Returns the dialog settings for this group.
|
boolean |
isGroupComplete()
Returns true or false if the group is complete or not.
|
protected void |
loadGroupSettings()
Loads the dialog settings of this group.
|
protected void |
notifyGroupChanged(IField field)
Sent when the content of a group field has changed.
|
void |
removeGroupListener(IGroupListener listener)
Removes the given group listener from the listeners list of this group.
|
void |
saveGroupSettings()
Saves the dialog settings of this group.
|
void |
setDialogSettings(org.eclipse.jface.dialogs.IDialogSettings dialogSettings)
Sets the dialog settings for this group.
|
public AbstractGroup(java.lang.String groupName)
groupName
group name.groupName
- the name of the group.public AbstractGroup(java.lang.String groupName, org.eclipse.jface.dialogs.IDialogSettings dialogSettings)
groupName
group name.groupName
- the name of the group.dialogSettings
- the dialog settings for this group or null.public void createContent(org.eclipse.swt.widgets.Composite parent, int numColumns)
IGroup
createContent
in interface IGroup
public void createContent(org.eclipse.swt.widgets.Composite parent, int numColumns, boolean suppressGroupFrame)
IGroup
createContent
in interface IGroup
protected abstract void doCreateContent(org.eclipse.swt.widgets.Composite parent, int numColumns)
protected void notifyGroupChanged(IField field)
protected void loadGroupSettings()
public void saveGroupSettings()
public final void addGroupListener(IGroupListener listener)
IGroup
addGroupListener
in interface IGroup
listener
- The group listener to add.public void removeGroupListener(IGroupListener listener)
IGroup
removeGroupListener
in interface IGroup
listener
- The group listener to remove.public boolean isGroupComplete()
isGroupComplete
in interface IGroup
public void setDialogSettings(org.eclipse.jface.dialogs.IDialogSettings dialogSettings)
The dialog settings is used to record state between group invocations (i.e. template path and the selected define block inside this template)
settings
- the dialog settings, or null
if nonegetDialogSettings()
protected org.eclipse.jface.dialogs.IDialogSettings getDialogSettings()
null
if none