Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.databinding.viewers
Class ViewerSupport


java.lang.Object
  extended by 
org.eclipse.jface.databinding.viewers.ViewerSupport

public class ViewerSupport
extends Object

Helper methods for binding observables to a StructuredViewer or AbstractTableViewer.

Since:
1.3

Constructor Summary
ViewerSupport ()
           
 
Method Summary
static void bind ( AbstractTreeViewer viewer, Object input, org.eclipse.core.databinding.property.list.IListProperty childrenProperty, org.eclipse.core.databinding.property.value.IValueProperty labelProperty)
          Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label property to generate labels.
static void bind ( AbstractTreeViewer viewer, Object input, org.eclipse.core.databinding.property.list.IListProperty childrenProperty, org.eclipse.core.databinding.property.value.IValueProperty[] labelProperties)
          Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label properties to generate labels.
static void bind ( AbstractTreeViewer viewer, Object input, org.eclipse.core.databinding.property.set.ISetProperty childrenProperty, org.eclipse.core.databinding.property.value.IValueProperty labelProperty)
          Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label property to generate labels.
static void bind ( AbstractTreeViewer viewer, Object input, org.eclipse.core.databinding.property.set.ISetProperty childrenProperty, org.eclipse.core.databinding.property.value.IValueProperty[] labelProperties)
          Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label properties to generate labels.
static void bind ( StructuredViewer viewer, IObservableList input, org.eclipse.core.databinding.property.value.IValueProperty labelProperty)
          Binds the viewer to the specified input, using the specified label property to generate labels.
static void bind ( StructuredViewer viewer, IObservableList input, org.eclipse.core.databinding.property.value.IValueProperty[] labelProperties)
          Binds the viewer to the specified input, using the specified label properties to generate labels.
static void bind ( StructuredViewer viewer, IObservableSet input, org.eclipse.core.databinding.property.value.IValueProperty labelProperty)
          Binds the viewer to the specified input, using the specified label property to generate labels.
static void bind ( StructuredViewer viewer, IObservableSet input, org.eclipse.core.databinding.property.value.IValueProperty[] labelProperties)
          Binds the viewer to the specified input, using the specified label properties to generate labels.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewerSupport

public ViewerSupport()
Method Detail

bind

public static void bind(
StructuredViewer viewer,
                        
IObservableList input,
                        org.eclipse.core.databinding.property.value.IValueProperty labelProperty)
Binds the viewer to the specified input, using the specified label property to generate labels.

Parameters:
viewer - the viewer to set up
input - the input to set on the viewer
labelProperty - the property to use for labels

bind

public static void bind(
StructuredViewer viewer,
                        
IObservableList input,
                        org.eclipse.core.databinding.property.value.IValueProperty[] labelProperties)
Binds the viewer to the specified input, using the specified label properties to generate labels.

Parameters:
viewer - the viewer to set up
input - the input to set on the viewer
labelProperties - the respective properties to use for labels in each of the viewer's columns

bind

public static void bind(
StructuredViewer viewer,
                        
IObservableSet input,
                        org.eclipse.core.databinding.property.value.IValueProperty labelProperty)
Binds the viewer to the specified input, using the specified label property to generate labels.

Parameters:
viewer - the viewer to set up
input - the input to set on the viewer
labelProperty - the property to use for labels

bind

public static void bind(
StructuredViewer viewer,
                        
IObservableSet input,
                        org.eclipse.core.databinding.property.value.IValueProperty[] labelProperties)
Binds the viewer to the specified input, using the specified label properties to generate labels.

Parameters:
viewer - the viewer to set up
input - the input to set on the viewer
labelProperties - the respective properties to use for labels in each of the viewer's columns

bind

public static void bind(
AbstractTreeViewer viewer,
                        
Object input,
                        org.eclipse.core.databinding.property.list.IListProperty childrenProperty,
                        org.eclipse.core.databinding.property.value.IValueProperty labelProperty)
Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label property to generate labels.

Parameters:
viewer - the tree viewer to set up
input - the input to set on the viewer
childrenProperty - the property to use as the children of an element
labelProperty - the property to use for labels

bind

public static void bind(
AbstractTreeViewer viewer,
                        
Object input,
                        org.eclipse.core.databinding.property.list.IListProperty childrenProperty,
                        org.eclipse.core.databinding.property.value.IValueProperty[] labelProperties)
Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label properties to generate labels.

Parameters:
viewer - the tree viewer to set up
input - the input to set on the viewer
childrenProperty - the property to use as the children of an element
labelProperties - the respective properties to use for labels in each of the viewer's columns

bind

public static void bind(
AbstractTreeViewer viewer,
                        
Object input,
                        org.eclipse.core.databinding.property.set.ISetProperty childrenProperty,
                        org.eclipse.core.databinding.property.value.IValueProperty labelProperty)
Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label property to generate labels.

Parameters:
viewer - the tree viewer to set up
input - the input to set on the viewer
childrenProperty - the property to use as the children of an element
labelProperty - the property to use for labels

bind

public static void bind(
AbstractTreeViewer viewer,
                        
Object input,
                        org.eclipse.core.databinding.property.set.ISetProperty childrenProperty,
                        org.eclipse.core.databinding.property.value.IValueProperty[] labelProperties)
Binds the viewer to the specified input, using the specified children property to generate child nodes, and the specified label properties to generate labels.

Parameters:
viewer - the tree viewer to set up
input - the input to set on the viewer
childrenProperty - the property to use as the children of an element
labelProperties - the respective properties to use for labels in each of the viewer's columns

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire