Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.view.objtable
Class ObjectTableViewProvider

java.lang.Object
  extended by com.ibm.etools.iseries.rse.ui.view.objtable.ObjectTableViewProvider
All Implemented Interfaces:
IObjectTableConstants

public class ObjectTableViewProvider
extends Object
implements IObjectTableConstants


Field Summary
protected  boolean _bypassRemoteQuery
           
static String copyright
           
protected  Viewer viewer
           
 
Fields inherited from interface com.ibm.etools.iseries.rse.ui.view.objtable.IObjectTableConstants
ALL, ATTRIB_DATABASE, ATTRIB_DTA, ATTRIB_SRC, BASIC_COLUMN_LAYOUTS, BASIC_COLUMN_MAPPINGS, BASIC_COLUMN_WIDTHS, BASIC_DATA_COLUMNS, BLANK, COLUMN_ATTRIBUTE, COLUMN_ATTRIBUTE_CHAR, COLUMN_CREATEDATE, COLUMN_CREATEDATE_CHAR, COLUMN_MODIFIEDDATE, COLUMN_MODIFIEDDATE_CHAR, COLUMN_NAME, COLUMN_NAME_CHAR, COLUMN_NOT_DISPLAYED, COLUMN_PROPERTIES, COLUMN_SIZE, COLUMN_SIZE_CHAR, COLUMN_TEXT, COLUMN_TEXT_CHAR, COLUMN_TYPE, COLUMN_TYPE_CHAR, Copyright, EMPTY_COLUMN_LAYOUTS, EMPTY_COLUMN_MAPPINGS, EMPTY_COLUMN_WIDTHS, EXPORT_ACTION_COLUMN_WIDTHS, EXPORT_ACTION_HEADER_UNDERLINES, EXPORT_ACTION_SPACE_HOLDERS, INDEX_SUBSET_MBR_NAME_FILTER, INDEX_SUBSET_MBR_TEXT_FILTER, INDEX_SUBSET_MBR_TYPE_FILTER, INDEX_SUBSET_OBJ_ATTRIB_FILTER, INDEX_SUBSET_OBJ_FROM_SIZE_FILTER, INDEX_SUBSET_OBJ_NAME_FILTER, INDEX_SUBSET_OBJ_TEXT_FILTER, INDEX_SUBSET_OBJ_TO_SIZE_FILTER, INDEX_SUBSET_OBJ_TYPE_FILTER, MAX_NUMBER_MBR_ADD, MAX_NUMBER_OBJ_ADD, MBR_EXTRA_COLUMN_LAYOUTS, MBR_EXTRA_COLUMN_MAPPINGS, MBR_EXTRA_COLUMN_WIDTHS, NFS_ISERIES_TABLE_VIEW, NUMBER_OF_COLUMNS, OBJ_EXTRA_COLUMN_LAYOUTS, OBJ_EXTRA_COLUMN_MAPPINGS, OBJ_EXTRA_COLUMN_WIDTHS, PROP_ATTRIB, PROP_CREATED, PROP_MODIFIED, PROP_NAME, PROP_SIZE, PROP_TEXT, PROP_TYPE, SUBSET_ASTERISK_ALL, SUBSET_ASTERISK_BACK, SUBSET_ASTERISK_FRONT, SUBSET_ASTERISK_FRONT_AND_BACK, SUBSET_ASTERISK_MIDDLE, SUBSET_EXACT, SUBSET_INVALID, TABLE_VIEW_EMPTY, TABLE_VIEW_FILTER_MBR, TABLE_VIEW_FILTER_OBJ, TABLE_VIEW_FORMAT_ALL_MBR, TABLE_VIEW_FORMAT_ALL_OBJ, TABLE_VIEW_FORMAT_CUSTOMIZED_MBR, TABLE_VIEW_FORMAT_CUSTOMIZED_OBJ, TABLE_VIEW_FORMAT_DEFAULT, TABLE_VIEW_FORMAT_EMPTY, TABLE_VIEW_GO_BACKWARD, TABLE_VIEW_GO_DOWN, TABLE_VIEW_GO_FORWARD, TABLE_VIEW_GO_UP, TABLE_VIEW_MBR, TABLE_VIEW_OBJ, TABLE_VIEW_POSITION_TO_BOTTOM, TABLE_VIEW_POSITION_TO_TOP, TABLE_VIEW_SHOW_COLUMN_ALL, TABLE_VIEW_SHOW_COLUMN_CUSTOMIZED, TABLE_VIEW_SHOW_COLUMN_DEFAULT, TABLE_VIEW_SHOW_COLUMN_UNKNOWN, TABLE_VIEW_WORK_WITH_LIB, TABLE_VIEW_WORK_WITH_MBR, TABLE_VIEW_WORK_WITH_OBJ, TAG_TABLE_VIEW_CONNECTION, TAG_TABLE_VIEW_ELEMENT, TAG_TABLE_VIEW_FILTER_STR, TAG_TABLE_VIEW_SUBSET, TAG_TABLE_VIEW_TYPE, TAG_TABLE_VIEW_WORK_WITH, TAG_TABLE_VIEW_WW_ACTION
 
Constructor Summary
ObjectTableViewProvider(Shell shell, ObjectTableView tableView)
           
 
Method Summary
 void addListener(ILabelProviderListener listener)
           
 void clearElements()
           
 void dispose()
           
 boolean extractExtraDetail()
          Check if extra detail needs to be extracted in addition to the basic information.
 Image getColumnImage(Object element, int column)
           
 String getColumnText(Object obj, int column)
          Called by viewer to get the column text
 String getColumnText(Object obj, int column, DateFormat datefmt)
          Common method to allow a different DateFormat to be specified.
 int getElementCount()
          Return the current number of elements.
 Object[] getElements(Object input)
           
 void inputChanged(Viewer viewer, Object oldInput, Object newInput)
          Called by Viewer when there is input changed
 boolean isLabelProperty(Object element, String property)
           
 void removeListener(ILabelProviderListener listener)
           
protected  void setRemoteRefreshBypass(boolean skip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

viewer

protected Viewer viewer

_bypassRemoteQuery

protected boolean _bypassRemoteQuery
Constructor Detail

ObjectTableViewProvider

public ObjectTableViewProvider(Shell shell,
                               ObjectTableView tableView)
Method Detail

getColumnText

public String getColumnText(Object obj,
                            int column)
Called by viewer to get the column text


getColumnText

public String getColumnText(Object obj,
                            int column,
                            DateFormat datefmt)
Common method to allow a different DateFormat to be specified. When called by ObjTablePrintAction, it specifies a shorter date format.

Parameters:
obj -
column -
datefmt -
Returns:

isLabelProperty

public boolean isLabelProperty(Object element,
                               String property)

removeListener

public void removeListener(ILabelProviderListener listener)

dispose

public void dispose()

addListener

public void addListener(ILabelProviderListener listener)

setRemoteRefreshBypass

protected void setRemoteRefreshBypass(boolean skip)

getElements

public Object[] getElements(Object input)

clearElements

public void clearElements()

getElementCount

public int getElementCount()
Return the current number of elements. (This value is before any view filter subsetting.)

Returns:

inputChanged

public void inputChanged(Viewer viewer,
                         Object oldInput,
                         Object newInput)
Called by Viewer when there is input changed


getColumnImage

public Image getColumnImage(Object element,
                            int column)
See Also:
ITableLabelProvider#getColumnImage(java.lang.Object, int)

extractExtraDetail

public boolean extractExtraDetail()
Check if extra detail needs to be extracted in addition to the basic information. Specifically, if showing the created-date or modified-date or size values in the table view, then they need to be extracted as part of the additional detail. (d1988:) Or also if have a Filter set for the size range, even though size column may not be shown.


Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.