de.cau.cs.kieler.kiml.ui
Class LayouterHintProvider

java.lang.Object
  extended by de.cau.cs.kieler.kiml.ui.LayouterHintProvider
All Implemented Interfaces:
IContentProvider, IStructuredContentProvider, ITreeContentProvider

public class LayouterHintProvider
extends Object
implements ITreeContentProvider

Content provider for displaying layout algorithms sorted by layout type.

Rating red

Constructor Summary
LayouterHintProvider()
           
 
Method Summary
 boolean applyFilter(Object element)
          Apply the current filter to the given element.
 void dispose()
          
 String getBestFilterMatch()
          Returns the best match of the currently active filter.
 Object[] getChildren(Object parentElement)
          
 Object[] getElements(Object inputElement)
          
 Object getParent(Object element)
          
 boolean hasChildren(Object element)
          
 void inputChanged(Viewer viewer, Object oldInput, Object newInput)
          
 void updateFilter(String filter)
          Update the filter value for this provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayouterHintProvider

public LayouterHintProvider()
Method Detail

inputChanged

public void inputChanged(Viewer viewer,
                         Object oldInput,
                         Object newInput)

Specified by:
inputChanged in interface IContentProvider

getElements

public Object[] getElements(Object inputElement)

Specified by:
getElements in interface IStructuredContentProvider
Specified by:
getElements in interface ITreeContentProvider

getChildren

public Object[] getChildren(Object parentElement)

Specified by:
getChildren in interface ITreeContentProvider

getParent

public Object getParent(Object element)

Specified by:
getParent in interface ITreeContentProvider

hasChildren

public boolean hasChildren(Object element)

Specified by:
hasChildren in interface ITreeContentProvider

dispose

public void dispose()

Specified by:
dispose in interface IContentProvider

updateFilter

public void updateFilter(String filter)
Update the filter value for this provider.

Parameters:
filter - the new filter value

applyFilter

public boolean applyFilter(Object element)
Apply the current filter to the given element.

Parameters:
element - an element from the content
Returns:
true if the filter admits the element

getBestFilterMatch

public String getBestFilterMatch()
Returns the best match of the currently active filter.

Returns:
the best filter match