com.sage.accpac.sm
Class ViewKeys

java.lang.Object
  extended by com.sage.accpac.sm.ViewKeys
All Implemented Interfaces:
IViewKeys, java.lang.Iterable<IViewKey>

@ThreadSafe
public final class ViewKeys
extends java.lang.Object
implements IViewKeys

Represents the collection of keys in an Accpac view


Method Summary
 ViewKey get(int index)
          Deprecated. 
 int getCount()
          Gets the number of keys defined by the view
 IViewKey getKey(int index)
          Gets the key with the given zero-based index
 View getParent()
          Gets the View object that created the current object
 java.util.Iterator<IViewKey> iterator()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCount

public int getCount()
Gets the number of keys defined by the view

Specified by:
getCount in interface IViewKeys
Returns:
the number of keys defined by the view

get

@Deprecated
public ViewKey get(int index)
Deprecated. 

Gets the key with the given zero-based index

This method is deprecated; use getKey(int) instead

Parameters:
index - the zero-based index of the key desired.
Returns:
the key with the given zero-based index
See Also:
getCount(), getKey(int)

getKey

public IViewKey getKey(int index)
Gets the key with the given zero-based index

Specified by:
getKey in interface IViewKeys
Parameters:
index - the zero-based index of the key desired.
Returns:
the key with the given zero-based index
See Also:
IViewKeys.getCount()

getParent

public View getParent()
Gets the View object that created the current object

Returns:
the View object that created the current object

iterator

public java.util.Iterator<IViewKey> iterator()

Specified by:
iterator in interface java.lang.Iterable<IViewKey>


Copyright © 2011 Sage Software, Inc. All rights reserved.