|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.geclipse.ui.providers.GridModelContentProvider
eu.geclipse.ui.providers.ConfigurableContentProvider
public class ConfigurableContentProvider
A GridModelContentProvider that may provide the content
either in a flat mode or in a hierarchical mode. In flat mode all
elements will be represented as direct children of the root node.
In hierarchical mode the elements are represented in their normal
hierarchical structure as provided by the Grid model.
| Field Summary | |
|---|---|
static int |
MODE_FLAT
Static field that denotes the flat representation mode. |
static int |
MODE_HIERARCHICAL
Static field that denotes the hierarchical representation mode. |
| Constructor Summary | |
|---|---|
ConfigurableContentProvider()
|
|
| Method Summary | |
|---|---|
void |
addConfigurationListener(IConfigurationListener listener)
Add an IConfigurationListener to the list of currently
registered listeners. |
java.lang.Object[] |
getChildren(java.lang.Object parentElement)
|
java.lang.Object[] |
getElements(java.lang.Object inputElement)
|
int |
getMode()
Get the current mode of this ConfigurableContentProvider. |
void |
removeConfigurationListener(IConfigurationListener listener)
Remove the specified IConfigurationListener from the
list of listeners. |
void |
setMode(int m)
Set the current mode of this ConfigurableContentProvider. |
| Methods inherited from class eu.geclipse.ui.providers.GridModelContentProvider |
|---|
dispose, getParent, hasChildren, inputChanged, treeCollapsed, treeExpanded |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MODE_FLAT
public static final int MODE_HIERARCHICAL
| Constructor Detail |
|---|
public ConfigurableContentProvider()
| Method Detail |
|---|
public void addConfigurationListener(IConfigurationListener listener)
IConfigurationListener to the list of currently
registered listeners.
listener - The new IConfigurationListener to be added.public java.lang.Object[] getChildren(java.lang.Object parentElement)
getChildren in class GridModelContentProviderpublic java.lang.Object[] getElements(java.lang.Object inputElement)
getElements in class GridModelContentProviderpublic void setMode(int m)
ConfigurableContentProvider.
m - The new mode, i.e. either MODE_FLAT
or MODE_HIERARCHICAL.public int getMode()
ConfigurableContentProvider.
MODE_FLAT
or MODE_HIERARCHICAL.public void removeConfigurationListener(IConfigurationListener listener)
IConfigurationListener from the
list of listeners.
listener - The listener to be removed.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||