view.mailBoxView.util
Class MailBoxTreeContentProvider

java.lang.Object
  extended by view.mailBoxView.util.MailBoxTreeContentProvider
All Implemented Interfaces:
org.eclipse.jface.viewers.IContentProvider, org.eclipse.jface.viewers.IStructuredContentProvider, org.eclipse.jface.viewers.ITreeContentProvider

public class MailBoxTreeContentProvider
extends java.lang.Object
implements org.eclipse.jface.viewers.ITreeContentProvider

MailBoxTreeContentProvider is a class to provide the content to the tree in a MailBoxView

Author:
pgroudas

Field Summary
private  Controller control
           
 
Constructor Summary
MailBoxTreeContentProvider(Controller c)
          Constructs a new MailBoxTreeContentProvider
 
Method Summary
 void dispose()
          This implementation of ITreeContentProvider does nothing for this method.
 java.lang.Object[] getChildren(java.lang.Object arg0)
          Gets the children of the specified object in the tree.
 java.lang.Object[] getElements(java.lang.Object arg0)
          Gets the root elements for the tree.
 java.lang.Object getParent(java.lang.Object arg0)
          Gets the parent of a particular object in the tree.
 boolean hasChildren(java.lang.Object arg0)
          Returns true if the specified item has any children.
 void inputChanged(org.eclipse.jface.viewers.Viewer arg0, java.lang.Object arg1, java.lang.Object arg2)
          This implementation of ITreeContentProvider does nothing for this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

control

private Controller control
Constructor Detail

MailBoxTreeContentProvider

public MailBoxTreeContentProvider(Controller c)
Constructs a new MailBoxTreeContentProvider

Parameters:
c -
Method Detail

getChildren

public java.lang.Object[] getChildren(java.lang.Object arg0)
Gets the children of the specified object in the tree.

Specified by:
getChildren in interface org.eclipse.jface.viewers.ITreeContentProvider
Parameters:
arg0 -
Returns:
Object[]

getParent

public java.lang.Object getParent(java.lang.Object arg0)
Gets the parent of a particular object in the tree.

Specified by:
getParent in interface org.eclipse.jface.viewers.ITreeContentProvider
Parameters:
arg0 -
Returns:
Object

hasChildren

public boolean hasChildren(java.lang.Object arg0)
Returns true if the specified item has any children.

Specified by:
hasChildren in interface org.eclipse.jface.viewers.ITreeContentProvider
Parameters:
arg0 -
Returns:
boolean

getElements

public java.lang.Object[] getElements(java.lang.Object arg0)
Gets the root elements for the tree.

Specified by:
getElements in interface org.eclipse.jface.viewers.IStructuredContentProvider
Parameters:
arg0 -
Returns:
Object[]

dispose

public void dispose()
This implementation of ITreeContentProvider does nothing for this method.

Specified by:
dispose in interface org.eclipse.jface.viewers.IContentProvider

inputChanged

public void inputChanged(org.eclipse.jface.viewers.Viewer arg0,
                         java.lang.Object arg1,
                         java.lang.Object arg2)
This implementation of ITreeContentProvider does nothing for this method.

Specified by:
inputChanged in interface org.eclipse.jface.viewers.IContentProvider