thinwire.ui
Class GridBox.Row

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<java.lang.Object>
          extended by thinwire.util.ArrayGrid.Row
              extended by thinwire.ui.GridBox.Row
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>, java.util.Collection<java.lang.Object>, java.util.List<java.lang.Object>, Grid.Row
Enclosing class:
GridBox

public static final class GridBox.Row
extends ArrayGrid.Row


Field Summary
static java.lang.String PROPERTY_ROW_CHECKED
           
static java.lang.String PROPERTY_ROW_CHILD
           
static java.lang.String PROPERTY_ROW_SELECTED
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
GridBox.Row()
          Construct a Row.
GridBox.Row(boolean checked, java.util.Collection<? extends java.lang.Object> c)
          Construct a Row that contains the values of the specified Collection.
GridBox.Row(boolean checked, java.lang.Object... a)
          Construct a Row that contains the values of the specified Array.
GridBox.Row(java.util.Collection<? extends java.lang.Object> c)
          Construct a Row that contains the values of the specified Collection.
GridBox.Row(java.lang.Object... a)
          Construct a Row that contains the values of the specified Array.
 
Method Summary
 GridBox getChild()
          Get this Row's child GridBox.
 boolean isChecked()
          Returns the checked state of the row.
 boolean isSelected()
          Returns the selected state of the row.
 void setChecked(boolean checked)
          Sets the checked state of the row.
 void setChild(GridBox child)
          Set this Row's child GridBox.
 void setSelected(boolean selected)
          Sets the selected state of the row.
 java.lang.String toString()
           
 
Methods inherited from class thinwire.util.ArrayGrid.Row
add, get, get, getIndex, getParent, remove, set, set, size
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray
 

Field Detail

PROPERTY_ROW_SELECTED

public static final java.lang.String PROPERTY_ROW_SELECTED
See Also:
Constant Field Values

PROPERTY_ROW_CHECKED

public static final java.lang.String PROPERTY_ROW_CHECKED
See Also:
Constant Field Values

PROPERTY_ROW_CHILD

public static final java.lang.String PROPERTY_ROW_CHILD
See Also:
Constant Field Values
Constructor Detail

GridBox.Row

public GridBox.Row()
Construct a Row.


GridBox.Row

public GridBox.Row(java.util.Collection<? extends java.lang.Object> c)
Construct a Row that contains the values of the specified Collection.

Parameters:
c - the new Row's values.

GridBox.Row

public GridBox.Row(boolean checked,
                   java.util.Collection<? extends java.lang.Object> c)
Construct a Row that contains the values of the specified Collection.

Parameters:
a - the new Row's values.

GridBox.Row

public GridBox.Row(java.lang.Object... a)
Construct a Row that contains the values of the specified Array.

Parameters:
a - the new Row's values.

GridBox.Row

public GridBox.Row(boolean checked,
                   java.lang.Object... a)
Construct a Row that contains the values of the specified Array.

Parameters:
a - the new Row's values.
Method Detail

isChecked

public boolean isChecked()
Returns the checked state of the row.

Returns:
the checked state of the row.
Throws:
java.lang.IllegalStateException - if the row has not been added to a GridBox.

setChecked

public void setChecked(boolean checked)
Sets the checked state of the row.

Parameters:
checked - true to check the row, false to uncheck it.

isSelected

public boolean isSelected()
Returns the selected state of the row.

Returns:
the selected state of the row.

setSelected

public void setSelected(boolean selected)
Sets the selected state of the row.

Parameters:
selected - true to select the row, false to unselect it.

getChild

public GridBox getChild()
Get this Row's child GridBox.

Returns:
this Row's child GridBox.

setChild

public void setChild(GridBox child)
Set this Row's child GridBox.

Parameters:
child - the child GridBox

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection<java.lang.Object>


ThinWire® is a registered of Custom Credit Systems  Copyright © 2007 All rights reserved.
ThinWire_is_Open_Source_under_the_terms_of_the_LGPLv2.1 SourceForge.net_Project_Page java.net_Member Support_ThinWire,_Digg_our_Story