com.izforge.izpack.panels.packs
Enum PacksModel.CbSelectionState

java.lang.Object
  extended by java.lang.Enum<PacksModel.CbSelectionState>
      extended by com.izforge.izpack.panels.packs.PacksModel.CbSelectionState
All Implemented Interfaces:
Serializable, Comparable<PacksModel.CbSelectionState>
Enclosing class:
PacksModel

public static enum PacksModel.CbSelectionState
extends Enum<PacksModel.CbSelectionState>

Enumeration of possible internal model states of a pack checkbox


Enum Constant Summary
DEPENDENT_DESELECTED
           
DESELECTED
           
PARTIAL_SELECTED
           
REQUIRED_DESELECTED
           
REQUIRED_PARTIAL_SELECTED
           
REQUIRED_SELECTED
           
SELECTED
           
 
Method Summary
 boolean isChecked()
          Check if the checkbox state means selected or required to be selected (even partially).
 boolean isFullyOrPartiallySelected()
          Check whether the checkbox state is one of SELECTED, PARTIAL_SELECTED.
 boolean isPartiallyChecked()
          Check if the checkbox state means partially selected or required to be partially selected.
 boolean isSelectable()
          Check whether the checkbox state is one of DESELECTED, SELECTED, PARTIAL_SELECTED.
 boolean isSelectedOrRequiredSelected()
          Check whether the checkbox state is one of REQUIRED_SELECTED, SELECTED.
static PacksModel.CbSelectionState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PacksModel.CbSelectionState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PARTIAL_SELECTED

public static final PacksModel.CbSelectionState PARTIAL_SELECTED

SELECTED

public static final PacksModel.CbSelectionState SELECTED

DESELECTED

public static final PacksModel.CbSelectionState DESELECTED

REQUIRED_SELECTED

public static final PacksModel.CbSelectionState REQUIRED_SELECTED

DEPENDENT_DESELECTED

public static final PacksModel.CbSelectionState DEPENDENT_DESELECTED

REQUIRED_PARTIAL_SELECTED

public static final PacksModel.CbSelectionState REQUIRED_PARTIAL_SELECTED

REQUIRED_DESELECTED

public static final PacksModel.CbSelectionState REQUIRED_DESELECTED
Method Detail

values

public static PacksModel.CbSelectionState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PacksModel.CbSelectionState c : PacksModel.CbSelectionState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PacksModel.CbSelectionState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isFullyOrPartiallySelected

public boolean isFullyOrPartiallySelected()
Check whether the checkbox state is one of SELECTED, PARTIAL_SELECTED.

Returns:
true if the above condition is met

isSelectable

public boolean isSelectable()
Check whether the checkbox state is one of DESELECTED, SELECTED, PARTIAL_SELECTED.

Returns:
true if the above condition is met

isSelectedOrRequiredSelected

public boolean isSelectedOrRequiredSelected()
Check whether the checkbox state is one of REQUIRED_SELECTED, SELECTED.

Returns:
true if the above condition is met

isChecked

public boolean isChecked()
Check if the checkbox state means selected or required to be selected (even partially).

Returns:
true if checkbox is selected else false

isPartiallyChecked

public boolean isPartiallyChecked()
Check if the checkbox state means partially selected or required to be partially selected.

Returns:
true if checkbox is selected else false


Copyright © 2018. All rights reserved.