CustomCommandButtonCollection

Inheritance: java.lang.Object, com.aspose.gridweb.CollectionBase

public class CustomCommandButtonCollection extends CollectionBase

Represents the collection of CustomCommandButton.

Example

         GridWeb GridWeb1 = new GridWeb();
         CustomCommandButton button = new CustomCommandButton();
         button.setCommand("MyCommand");
         button.setImageUrl("images/button1.gif");
         GridWeb1.getCustomCommandButtons().add(button);

Methods

MethodDescription
add(Object value)Add a custom command button object to the collection.
clear()Clears the collection.
contains(Object value)Indicates whether the custom command button object is in the collection.
copyTo(Object[] array, int index)Copies the collection to an array.
equals(Object arg0)
get(int index)Gets a custom command button object at the index.
getClass()
getCount()Gets the count of the collection.
getSyncRoot()Internal used only.
hashCode()
indexOf(Object value)Gets the index of the button.
insert(int index, Object value)Inserts a button at the index.
isFixedSize()Internal used only.
isReadOnly()Internal used only.
isSynchronized()Internal used only.
iterator()Gets a IEnumerator object of the collection.
notify()
notifyAll()
remove(Object value)Removes the custom command button object.
removeAt(int index)Removes at the index.
set(int index, CustomCommandButton value)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

add(Object value)

public int add(Object value)

Add a custom command button object to the collection.

Parameters:

ParameterTypeDescription
valuejava.lang.ObjectThe custom command button object.

Returns: int - The index.

clear()

public void clear()

Clears the collection.

contains(Object value)

public boolean contains(Object value)

Indicates whether the custom command button object is in the collection.

Parameters:

ParameterTypeDescription
valuejava.lang.ObjectIndicates whether the custom command button object is in the collection.

Returns: boolean - True of false.

copyTo(Object[] array, int index)

public void copyTo(Object[] array, int index)

Copies the collection to an array.

Parameters:

ParameterTypeDescription
arrayjava.lang.Object[]The array.
indexintThe start index of the array.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

get(int index)

public CustomCommandButton get(int index)

Gets a custom command button object at the index.

Parameters:

ParameterTypeDescription
indexint

Returns: CustomCommandButton

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCount()

public int getCount()

Gets the count of the collection.

Returns: int

getSyncRoot()

public Object getSyncRoot()

Internal used only.

Returns: java.lang.Object

hashCode()

public native int hashCode()

Returns: int

indexOf(Object value)

public int indexOf(Object value)

Gets the index of the button.

Parameters:

ParameterTypeDescription
valuejava.lang.ObjectThe button object.

Returns: int - The index.

insert(int index, Object value)

public void insert(int index, Object value)

Inserts a button at the index.

Parameters:

ParameterTypeDescription
indexintIndex.
valuejava.lang.ObjectThe CustomCommandButton object.

isFixedSize()

public boolean isFixedSize()

Internal used only.

Returns: boolean

isReadOnly()

public boolean isReadOnly()

Internal used only.

Returns: boolean

isSynchronized()

public boolean isSynchronized()

Internal used only.

Returns: boolean

iterator()

public Iterator iterator()

Gets a IEnumerator object of the collection.

Returns: java.util.Iterator - The IEnumerator object.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

remove(Object value)

public void remove(Object value)

Removes the custom command button object.

Parameters:

ParameterTypeDescription
valuejava.lang.ObjectThe custom command button object.

removeAt(int index)

public void removeAt(int index)

Removes at the index.

Parameters:

ParameterTypeDescription
indexintIndex.

set(int index, CustomCommandButton value)

public void set(int index, CustomCommandButton value)

Parameters:

ParameterTypeDescription
indexint
valueCustomCommandButton

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int