qx.ui.selection
Class Selection

java.lang.Object
  extended by qx.core.Object
      extended by qx.ui.selection.Selection

public class Selection
extends Object

Helper for qx.ui.selection.SelectionManager, contains data for selections


Constructor Summary
Selection()
           
Selection(java.lang.Object mgr)
           
 
Method Summary
 void add(java.lang.Object item)
          Add an item to the selection
 boolean contains(java.lang.Object item)
          Check whether the selection contains a given item
 java.lang.String getChangeValue()
          Get a string representation of the Selection.
 java.lang.Object getFirst()
          Return first element of the Selection
 java.lang.Object getItemHashCode(java.lang.Object item)
          Compute a hash code for an item using the manager
 boolean isEmpty()
          Whether the selection is empty
 void remove(java.lang.Object item)
          Remove an item from the selection
 void removeAll()
          Remove all items from the selection
 java.lang.Object toArray()
          Convert selection to an array
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Selection

public Selection()

Selection

public Selection(java.lang.Object mgr)
Method Detail

add

public void add(java.lang.Object item)

Add an item to the selection


contains

public boolean contains(java.lang.Object item)

Check whether the selection contains a given item


getChangeValue

public java.lang.String getChangeValue()

Get a string representation of the Selection. The return value can be used to compare selections.


getFirst

public java.lang.Object getFirst()

Return first element of the Selection


getItemHashCode

public java.lang.Object getItemHashCode(java.lang.Object item)

Compute a hash code for an item using the manager


isEmpty

public boolean isEmpty()

Whether the selection is empty


remove

public void remove(java.lang.Object item)

Remove an item from the selection


removeAll

public void removeAll()

Remove all items from the selection


toArray

public java.lang.Object toArray()

Convert selection to an array



Copyright © 2008 1&1. All Rights Reserved.